Skip to content

Commit b696426

Browse files
committed
default eslint to v9
1 parent 05f01f5 commit b696426

File tree

3 files changed

+485
-214
lines changed

3 files changed

+485
-214
lines changed

.eslintrc.cli.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,20 @@
2121
"@typescript-eslint/no-floating-promises": "off"
2222
}
2323
}
24-
]
24+
],
25+
"rules": {
26+
// TODO(jiwon): handle them correctly when fully migrating to ESLint v9
27+
// below errored when upgraded to ESLint v9
28+
"no-unused-vars": "off",
29+
"@typescript-eslint/no-unused-vars": "off",
30+
"@typescript-eslint/no-unsafe-function-type": "off",
31+
"@typescript-eslint/no-require-imports": "off",
32+
"@typescript-eslint/no-empty-object-type": "off",
33+
"@typescript-eslint/no-wrapper-object-types": "off",
34+
"react-hooks/rules-of-hooks": "off",
35+
"@typescript-eslint/no-unsafe-assignment": "off",
36+
"@typescript-eslint/no-unsafe-member-access": "off",
37+
"@typescript-eslint/no-unsafe-call": "off",
38+
"@typescript-eslint/no-unsafe-return": "off"
39+
}
2540
}

package.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"git-clean": "git clean -d -x -e node_modules -e packages -f",
3535
"typescript": "tsc --noEmit",
3636
"lint-typescript": "turbo run typescript",
37-
"lint-eslint": "eslint . --ext js,jsx,ts,tsx --config .eslintrc.cli.json --no-eslintrc",
37+
"lint-eslint": "cross-env ESLINT_USE_FLAT_CONFIG=false eslint . --ext js,jsx,ts,tsx --config .eslintrc.cli.json --no-eslintrc",
3838
"lint-ast-grep": "ast-grep scan",
3939
"lint-no-typescript": "run-p prettier-check lint-eslint lint-language",
4040
"types-and-precompiled": "run-p lint-typescript check-precompiled validate-externals-doc",
@@ -121,8 +121,8 @@
121121
"@types/relay-runtime": "14.1.13",
122122
"@types/string-hash": "1.1.1",
123123
"@types/trusted-types": "2.0.3",
124-
"@typescript-eslint/eslint-plugin": "7.16.0",
125-
"@typescript-eslint/parser": "7.16.0",
124+
"@typescript-eslint/eslint-plugin": "8.0.0",
125+
"@typescript-eslint/parser": "8.0.0",
126126
"@vercel/devlow-bench": "workspace:*",
127127
"@vercel/fetch": "6.1.1",
128128
"@vercel/og": "0.6.3",
@@ -144,16 +144,16 @@
144144
"dd-trace": "4.12.0",
145145
"es5-ext": "0.10.53",
146146
"escape-string-regexp": "2.0.0",
147-
"eslint": "8.56.0",
147+
"eslint": "9.12.0",
148148
"eslint-config-next": "workspace:*",
149149
"eslint-formatter-codeframe": "7.32.1",
150150
"eslint-plugin-eslint-plugin": "5.2.1",
151-
"eslint-plugin-import": "2.29.1",
151+
"eslint-plugin-import": "2.31.0",
152152
"eslint-plugin-jest": "27.6.3",
153153
"eslint-plugin-jsdoc": "48.0.4",
154-
"eslint-plugin-react": "7.33.2",
155-
"eslint-plugin-react-hooks": "4.6.0",
156-
"eslint-v9": "npm:eslint@^9.0.0",
154+
"eslint-plugin-react": "7.35.0",
155+
"eslint-plugin-react-hooks": "5.0.0",
156+
"eslint-v8": "npm:eslint@^8.56.0",
157157
"event-stream": "4.0.1",
158158
"execa": "2.0.3",
159159
"expect-type": "0.14.2",
@@ -275,8 +275,7 @@
275275
"react": "19.0.0-rc-70fb1363-20241010",
276276
"react-dom": "19.0.0-rc-70fb1363-20241010",
277277
"react-is": "19.0.0-rc-70fb1363-20241010",
278-
"scheduler": "0.25.0-rc-70fb1363-20241010",
279-
"eslint": "8.56.0"
278+
"scheduler": "0.25.0-rc-70fb1363-20241010"
280279
},
281280
"patchedDependencies": {
282281

0 commit comments

Comments
 (0)