Skip to content

Commit

Permalink
feat: Added react compiler eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-crowell committed Jun 14, 2024
1 parent b55cec1 commit 6a95a88
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
11 changes: 11 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
import doob from '@do-ob/eslint-config';
import reactCompiler from 'eslint-plugin-react-compiler';

export default [
...doob.configs.recommended,

{
plugins: {
'react-compiler': reactCompiler,
},
rules: {
...reactCompiler.rules.recommended,
'react-compiler/react-compiler': 'error',
},
},
];
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"autoprefixer": "^10.4.19",
"cssnano": "^7.0.2",
"eslint": "^9.2.0",
"eslint-plugin-react-compiler": "0.0.0-experimental-51a85ea-20240601",
"framer-motion": "^11.2.10",
"postcss": "^8.4.38",
"react": "18.3.1",
Expand Down
63 changes: 63 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 6a95a88

Please sign in to comment.