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 cb877f2 commit efac6d6
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 1 deletion.
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 @@ -151,6 +151,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",
"jest-leak-detector": "^29.7.0",
Expand Down
55 changes: 55 additions & 0 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 efac6d6

Please sign in to comment.