Skip to content

Commit e409e64

Browse files
authored
feat(eslint): add jsx-runtime react (#974)
1 parent bb01301 commit e409e64

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.eslintrc

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,15 @@
1212
{
1313
"devDependencies": ["**/__tests__/*", "rollup.config.mjs"]
1414
}
15-
],
16-
"react/jsx-uses-react": "off",
17-
"react/react-in-jsx-scope": "off"
15+
]
1816
},
1917
"overrides": [
2018
{
2119
"files": ["*.ts", "*.tsx"],
2220
"parserOptions": {
2321
"project": ["tsconfig.json"]
2422
},
25-
"extends": ["./packages/eslint-config-react/typescript.js"],
26-
"rules": {
27-
"react/jsx-uses-react": "off",
28-
"react/react-in-jsx-scope": "off"
29-
}
23+
"extends": ["./packages/eslint-config-react/typescript.js"]
3024
}
3125
]
3226
}

packages/eslint-config-react/shared.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
/* eslint-disable sort-keys */
22

33
module.exports = {
4-
extends: ['airbnb/hooks', 'prettier', 'plugin:eslint-comments/recommended'],
4+
extends: [
5+
'airbnb/hooks',
6+
'prettier',
7+
'plugin:eslint-comments/recommended',
8+
'plugin:react/jsx-runtime',
9+
],
510
rules: {
611
'import/order': [
712
// https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/order.md

0 commit comments

Comments
 (0)