Skip to content

Commit f769338

Browse files
committed
add eslint-plugin-react-compiler
1 parent 7f90ae8 commit f769338

File tree

5 files changed

+420
-0
lines changed

5 files changed

+420
-0
lines changed

eslint.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import importPlugin from 'eslint-plugin-import';
44
import jsxA11y from 'eslint-plugin-jsx-a11y';
55
import react from 'eslint-plugin-react';
66
import reactHooks from 'eslint-plugin-react-hooks';
7+
import reactCompiler from 'eslint-plugin-react-compiler';
78

89
export default tseslint.config(
910
{ ignores: ['dist/', 'website/'] },
@@ -14,6 +15,7 @@ export default tseslint.config(
1415
react.configs.flat.recommended,
1516
react.configs.flat['jsx-runtime'],
1617
reactHooks.configs['recommended-latest'],
18+
reactCompiler.configs.recommended,
1719
{
1820
settings: {
1921
'import/resolver': { typescript: true },

examples/02_mutableAtom/src/app.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-disable react-compiler/react-compiler */
2+
13
import { useAtomValue } from 'jotai/react';
24
import { mutableAtom } from 'jotai-valtio';
35

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"eslint-plugin-import": "^2.31.0",
7070
"eslint-plugin-jsx-a11y": "^6.10.2",
7171
"eslint-plugin-react": "^7.37.4",
72+
"eslint-plugin-react-compiler": "19.0.0-beta-decd7b8-20250118",
7273
"eslint-plugin-react-hooks": "5.2.0-canary-de1eaa26-20250124",
7374
"happy-dom": "^16.7.2",
7475
"jotai": "^2.11.1",

0 commit comments

Comments
 (0)