Skip to content

Commit

Permalink
chore: add react compiler eslint rules (#908)
Browse files Browse the repository at this point in the history
* chore: add react compiler eslint rules

* chore: add react compiler eslint rules
  • Loading branch information
L-Qun authored Jun 21, 2024
1 parent 85ee54d commit a22a953
Show file tree
Hide file tree
Showing 3 changed files with 397 additions and 8 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",
"import/namespace": "off",
"import/named": "off",
"eqeqeq": "error",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
"eslint-plugin-react": "^7.34.2",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-vitest": "^0.5.4",
"eslint-plugin-react-compiler": "0.0.0-experimental-51a85ea-20240601",
"jest-leak-detector": "^29.7.0",
"jsdom": "^24.1.0",
"json": "^11.0.0",
Expand Down
Loading

0 comments on commit a22a953

Please sign in to comment.