Skip to content

Commit

Permalink
chore: add react compiler eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
L-Qun committed Jun 21, 2024
1 parent 18043c1 commit 1b8322b
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"prettier",
"react-hooks",
"import",
"vitest"
"vitest",
"eslint-plugin-react-compiler"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand All @@ -31,6 +32,7 @@
}
},
"rules": {
"react-compiler/react-compiler": "warn",
"eqeqeq": "error",
"no-var": "error",
"prefer-const": "error",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.2",
"eslint-plugin-react-compiler": "0.0.0-experimental-51a85ea-20240601",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-vitest": "^0.5.4",
"immer": "^10.1.1",
Expand Down
61 changes: 58 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1b8322b

Please sign in to comment.