Skip to content

Commit 29436b6

Browse files
committed
upgrade repo eslint to v9
1 parent f0b7f4a commit 29436b6

File tree

4 files changed

+271
-147
lines changed

4 files changed

+271
-147
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
}

lint-staged.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
'*.{js,jsx,mjs,ts,tsx,mts}': [
33
'prettier --with-node-modules --ignore-path .prettierignore --write',
4-
'eslint --fix',
4+
'cross-env ESLINT_USE_FLAT_CONFIG=false eslint --config .eslintrc.cli.json --fix',
55
],
66
'*.{json,md,mdx,css,html,yml,yaml,scss}': [
77
'prettier --with-node-modules --ignore-path .prettierignore --write',

package.json

Lines changed: 8 additions & 7 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,15 +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",
154+
"eslint-plugin-react": "7.35.0",
155+
"eslint-plugin-react-hooks": "5.0.0",
156+
"eslint-v8": "npm:eslint@^8.57.0",
156157
"event-stream": "4.0.1",
157158
"execa": "2.0.3",
158159
"expect-type": "0.14.2",

0 commit comments

Comments
 (0)