Skip to content

Commit 2af0218

Browse files
authored
chore: add react compiler eslint rules (#2612)
1 parent 18043c1 commit 2af0218

File tree

3 files changed

+62
-4
lines changed

3 files changed

+62
-4
lines changed

.eslintrc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"prettier",
2121
"react-hooks",
2222
"import",
23-
"vitest"
23+
"vitest",
24+
"eslint-plugin-react-compiler"
2425
],
2526
"parser": "@typescript-eslint/parser",
2627
"parserOptions": {
@@ -31,6 +32,7 @@
3132
}
3233
},
3334
"rules": {
35+
"react-compiler/react-compiler": "warn",
3436
"eqeqeq": "error",
3537
"no-var": "error",
3638
"prefer-const": "error",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@
237237
"eslint-plugin-import": "^2.29.1",
238238
"eslint-plugin-prettier": "^5.1.3",
239239
"eslint-plugin-react": "^7.34.2",
240+
"eslint-plugin-react-compiler": "0.0.0-experimental-51a85ea-20240601",
240241
"eslint-plugin-react-hooks": "^4.6.2",
241242
"eslint-plugin-vitest": "^0.5.4",
242243
"immer": "^10.1.1",

pnpm-lock.yaml

Lines changed: 58 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)