Skip to content

Commit e1fd3c4

Browse files
committed
Fix the warning of eslint-plugin-react
Fix the warning of React version not speicifed in eslint-plugin-react settings. See also: - jsx-eslint/eslint-plugin-react#1955
1 parent d02996b commit e1fd3c4

File tree

3 files changed

+12268
-409
lines changed

3 files changed

+12268
-409
lines changed

.eslintrc.js

+5-8
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,10 @@ module.exports = {
1717
plugins: [
1818
'react',
1919
],
20-
globals: {
21-
Atomics: 'readonly',
22-
SharedArrayBuffer: 'readonly',
23-
actor: 'readonly',
24-
Feature: 'readonly',
25-
Scenario: 'readonly',
26-
},
27-
rules: {
20+
settings: {
21+
react: {
22+
version: 'latest',
23+
},
2824
},
25+
rules: {},
2926
};

0 commit comments

Comments
 (0)