Skip to content
This repository was archived by the owner on Aug 3, 2025. It is now read-only.

Commit 91849e1

Browse files
committed
chore(packages/eslint-config): add eslint-plugin-react-compiler
1 parent fdec4f6 commit 91849e1

File tree

4 files changed

+126
-49
lines changed

4 files changed

+126
-49
lines changed

packages/eslint-config/library.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ module.exports = {
5454
'only-warn',
5555
'eslint-plugin-import-helpers',
5656
'react-refresh',
57+
'react-compiler',
5758
'sonarjs',
5859
'testing-library',
5960
'prettier',
@@ -193,6 +194,7 @@ module.exports = {
193194
'newlines-between': 'always',
194195
},
195196
],
197+
'react-compiler/react-compiler': 'error',
196198
'react/prop-types': 'off',
197199
'react-refresh/only-export-components': [
198200
'warn',

packages/eslint-config/next.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ module.exports = {
5454
'@typescript-eslint',
5555
'only-warn',
5656
'eslint-plugin-import-helpers',
57+
'react-compiler',
5758
'react-refresh',
5859
'sonarjs',
5960
'testing-library',
@@ -196,6 +197,7 @@ module.exports = {
196197
'newlines-between': 'always',
197198
},
198199
],
200+
'react-compiler/react-compiler': 'error',
199201
'react/prop-types': 'off',
200202
'react-refresh/only-export-components': [
201203
'warn',

packages/eslint-config/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"eslint-plugin-only-warn": "^1.1.0",
2828
"eslint-plugin-prettier": "^5.2.1",
2929
"eslint-plugin-react": "^7.36.1",
30+
"eslint-plugin-react-compiler": "19.0.0-beta-8a03594-20241020",
3031
"eslint-plugin-react-hooks": "^4.6.2",
3132
"eslint-plugin-react-refresh": "^0.4.12",
3233
"eslint-plugin-sonarjs": "^2.0.2",

0 commit comments

Comments
 (0)