Skip to content

Commit 6ea6cad

Browse files
authored
Merge pull request #26 from hasparus/new-conf-design--speaker-page
new conf design — speaker page
2 parents 14d7aa9 + 189df70 commit 6ea6cad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2125
-526
lines changed

.eslintrc.cjs

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@ const MARKDOWN_EXT = "md,mdx"
55

66
module.exports = {
77
root: true,
8-
plugins: ["@graphql-eslint", "mdx", "@typescript-eslint", "tailwindcss"],
8+
plugins: [
9+
"@graphql-eslint",
10+
"mdx",
11+
"@typescript-eslint",
12+
"tailwindcss",
13+
"react",
14+
"@next/next",
15+
"react-hooks",
16+
],
917
overrides: [
1018
{
1119
files: [`**/*.{${CODE_EXT}}`],
@@ -14,8 +22,42 @@ module.exports = {
1422
"plugin:@typescript-eslint/recommended",
1523
"plugin:tailwindcss/recommended",
1624
"prettier",
25+
"plugin:@next/next/recommended",
26+
"plugin:react-hooks/recommended-legacy",
27+
"plugin:react/recommended",
1728
],
1829
rules: {
30+
"react/react-in-jsx-scope": "off", // TS checks this
31+
"react/prop-types": "off", // and this
32+
"no-undef": "off", // and this too
33+
// This is type checking for projects without `@types/react`. Disabled due to false positives.
34+
"react/no-unknown-property": "off",
35+
36+
"react/no-unescaped-entities": [
37+
"warn", // quotes and apostrophes are okay
38+
{
39+
forbid: [
40+
{
41+
char: "<",
42+
alternatives: ["&lt;"],
43+
},
44+
{
45+
char: ">",
46+
alternatives: ["&gt;"],
47+
},
48+
{
49+
char: "{",
50+
alternatives: ["&#123;"],
51+
},
52+
{
53+
char: "}",
54+
alternatives: ["&#125;"],
55+
},
56+
],
57+
},
58+
],
59+
"@next/next/no-img-element": "off", // straight up upsell, small `img`s actually don't need optimization
60+
1961
"tailwindcss/classnames-order": "off",
2062
"@typescript-eslint/no-restricted-imports": [
2163
"error",
@@ -41,6 +83,9 @@ module.exports = {
4183
tailwindcss: {
4284
whitelist: ["roboto-mono"],
4385
},
86+
react: {
87+
version: "detect",
88+
},
4489
},
4590
},
4691
{
@@ -63,6 +108,7 @@ module.exports = {
63108
},
64109
rules: {
65110
"mdx/remark": "error",
111+
"no-unused-expressions": "off",
66112
},
67113
},
68114
{
@@ -90,7 +136,9 @@ module.exports = {
90136
{
91137
files: [
92138
`src/pages/blog/**/*.{${MARKDOWN_EXT}}`,
139+
`src/pages/graphql-js/running-an-express-graphql-server.mdx`,
93140
`src/code/**/*.{${MARKDOWN_EXT}}`,
141+
`src/app/conf/**/*.{${MARKDOWN_EXT}}`,
94142
],
95143
rules: {
96144
// Disable `remark-lint-first-heading-level` since in blogs we don't want to enforce the first heading to be an `h1`

.github/workflows/prettier.yml renamed to .github/workflows/check.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Prettier Check
1+
name: Lint and check formatting
22

33
on: pull_request
44

@@ -16,5 +16,9 @@ jobs:
1616

1717
- name: Install Dependencies
1818
run: pnpm i
19+
20+
- name: Run ESLint
21+
run: pnpm lint --quiet
22+
1923
- name: Run Prettier Check
2024
run: pnpm format:check

package.json

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,73 +22,76 @@
2222
"dependencies": {
2323
"@graphql-tools/schema": "10.0.15",
2424
"@headlessui/react": "^2.2.4",
25-
"@radix-ui/react-radio-group": "^1.1.3",
25+
"@radix-ui/react-radio-group": "^1.2.2",
2626
"@tailwindcss/container-queries": "^0.1.1",
2727
"@tailwindcss/nesting": "0.0.0-insiders.565cd3e",
28-
"@tailwindcss/typography": "^0.5.10",
29-
"autoprefixer": "^10.4.17",
30-
"clsx": "^2.1.0",
28+
"@tailwindcss/typography": "^0.5.15",
29+
"autoprefixer": "^10.4.20",
30+
"clsx": "^2.1.1",
3131
"codemirror": "^5.65.19",
3232
"codemirror-graphql": "1.3.2",
3333
"date-fns": "^2.30.0",
34-
"fast-glob": "^3.3.2",
34+
"fast-glob": "^3.3.3",
3535
"graphql": "16.10.0",
3636
"gray-matter": "^4.0.3",
3737
"hast-util-to-string": "3.0.1",
38-
"iframe-resizer-react": "^1.1.0",
38+
"iframe-resizer-react": "^1.1.1",
3939
"leaflet": "^1.9.4",
4040
"lucide-react": "^0.469.0",
41-
"markdown-to-jsx": "^7.4.0",
41+
"markdown-to-jsx": "^7.7.2",
4242
"marked": "5.1.2",
4343
"motion": "^12.11.0",
44-
"next": "^14.2.5",
45-
"next-image-export-optimizer": "^1.12.3",
46-
"next-query-params": "^5.0.0",
44+
"next": "^14.2.22",
45+
"next-image-export-optimizer": "^1.18.0",
46+
"next-query-params": "^5.0.1",
4747
"next-sitemap": "^4.2.3",
4848
"next-with-less": "^3.0.1",
4949
"nextra": "3.0.0-alpha.28",
5050
"nextra-theme-docs": "3.0.0-alpha.28",
5151
"numbro": "2.5.0",
5252
"p-limit": "^4.0.0",
5353
"parser-front-matter": "1.6.4",
54-
"postcss": "^8.4.33",
54+
"postcss": "^8.4.49",
5555
"react": "^18.3.1",
5656
"react-dom": "^18.3.1",
5757
"react-medium-image-zoom": "5.2.13",
5858
"react-use-measure": "^2.1.7",
5959
"rss": "1.2.2",
6060
"server-only": "0.0.1",
6161
"string-similarity": "^4.0.4",
62-
"string-strip-html": "^13.4.5",
63-
"tailwindcss": "^3.4.1",
62+
"string-strip-html": "^13.4.8",
63+
"tailwindcss": "^3.4.17",
6464
"timeago.js": "4.0.2",
6565
"unified": "11.0.5",
6666
"unist-util-visit": "^5.0.0",
6767
"use-query-params": "^2.2.1"
6868
},
6969
"devDependencies": {
7070
"@graphql-eslint/eslint-plugin": "4.3.0",
71-
"@svgr/webpack": "^8.0.1",
71+
"@next/eslint-plugin-next": "^15.3.3",
72+
"@svgr/webpack": "^8.1.0",
7273
"@types/codemirror": "5.60.7",
7374
"@types/hast": "3.0.4",
74-
"@types/node": "^22.10.2",
75-
"@types/react": "^18.2.73",
75+
"@types/node": "^22.10.5",
76+
"@types/react": "^18.3.18",
7677
"@types/rss": "0.0.32",
7778
"@types/string-similarity": "^4.0.2",
7879
"@typescript-eslint/eslint-plugin": "7.18.0",
7980
"@typescript-eslint/parser": "7.18.0",
8081
"eslint": "8.57.1",
8182
"eslint-config-prettier": "^9.1.0",
8283
"eslint-plugin-mdx": "^3.1.5",
84+
"eslint-plugin-react": "^7.37.5",
85+
"eslint-plugin-react-hooks": "^5.2.0",
8386
"eslint-plugin-tailwindcss": "3.17.5",
84-
"prettier": "3.4.2",
85-
"prettier-plugin-pkg": "^0.18.1",
86-
"prettier-plugin-tailwindcss": "^0.6.9",
87+
"prettier": "3.5.3",
88+
"prettier-plugin-pkg": "^0.20.0",
89+
"prettier-plugin-tailwindcss": "^0.6.12",
8790
"remark-frontmatter": "5.0.0",
8891
"remark-lint-first-heading-level": "3.1.2",
8992
"remark-lint-heading-increment": "3.1.2",
90-
"tsx": "^4.7.0",
91-
"typescript": "^5.4.3"
93+
"tsx": "^4.19.4",
94+
"typescript": "^5.8.3"
9295
},
9396
"pnpm": {
9497
"patchedDependencies": {

0 commit comments

Comments
 (0)