Skip to content

Commit e71a9e8

Browse files
update lint & build
1 parent e524506 commit e71a9e8

File tree

7 files changed

+5144
-8455
lines changed

7 files changed

+5144
-8455
lines changed

React/.eslintrc.cjs

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ module.exports = {
1010
},
1111
parserOptions: {
1212
project: './tsconfig.json',
13-
'createDefaultProgram': true,
14-
'ecmaVersion': 6,
13+
createDefaultProgram: true,
14+
ecmaVersion: 6,
1515
},
1616
globals: {
1717
System: false,
@@ -21,13 +21,28 @@ module.exports = {
2121
settings: {
2222
react: {
2323
createClass: 'createReactClass',
24-
'pragma': 'React',
25-
version: '16.2',
24+
pragma: 'React',
25+
version: '17.0',
2626
flowVersion: '0.53',
2727
},
2828
propWrapperFunctions: [
2929
'forbidExtraProps',
3030
],
3131
},
32+
rules: {
33+
'react/react-in-jsx-scope': 'off',
34+
'import/no-extraneous-dependencies': [
35+
'error',
36+
{
37+
devDependencies: [
38+
'**/vite.config.{js,ts}',
39+
'**/vitest.config.{js,ts}',
40+
'**/test/**',
41+
'**/*.test.{js,ts}',
42+
'**/*.spec.{js,ts}',
43+
],
44+
},
45+
],
46+
}
3247
}]
3348
};

0 commit comments

Comments
 (0)