Skip to content

Commit

Permalink
add react-compiler eslint plugin (#2783)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtextrem authored Dec 4, 2024
1 parent dc2b278 commit 2d495fd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@
"react",
"react-hooks",
"import",
"redos-detector"
"redos-detector",
"react-compiler"
],
"extends": ["prettier", "plugin:regexp/recommended"],
"rules": {
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/type-annotation-spacing": "error",
"react/jsx-pascal-case": "error",
"react-compiler/react-compiler": "warn",

// "react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"import/no-default-export": "error",
Expand Down
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-compiler": "^0.0.0-experimental-b8a7b48-20240830",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-redos-detector": "^2.4.0",
"eslint-plugin-regexp": "^2.2.0",
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6133,6 +6133,13 @@ __metadata:
languageName: node
linkType: hard

"eslint-plugin-react-compiler@npm:^0.0.0-experimental-b8a7b48-20240830":
version: 0.0.0
resolution: "eslint-plugin-react-compiler@npm:0.0.0"
checksum: 1c391119bbc3712408394508effb1f1ee6b8f57f225bdec0ecc651cc78727e01b6feffdeb27de0894e6a78811c1f61873dbaa4b2e91b0c105c630bb2cbbbe3e6
languageName: node
linkType: hard

"eslint-plugin-react-hooks@npm:^4.6.0":
version: 4.6.2
resolution: "eslint-plugin-react-hooks@npm:4.6.2"
Expand Down Expand Up @@ -10379,6 +10386,7 @@ __metadata:
eslint-config-prettier: ^8.5.0
eslint-plugin-import: ^2.26.0
eslint-plugin-react: ^7.30.1
eslint-plugin-react-compiler: ^0.0.0-experimental-b8a7b48-20240830
eslint-plugin-react-hooks: ^4.6.0
eslint-plugin-redos-detector: ^2.4.0
eslint-plugin-regexp: ^2.2.0
Expand Down

0 comments on commit 2d495fd

Please sign in to comment.