forked from userhjp/datav-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
68 lines (68 loc) · 1.71 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
settings: {
react: {
version: "17.x"
}
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
plugins: ['prettier', '@typescript-eslint'],
env: {
browser: true,
commonjs: true,
es6: true,
},
globals: {
Window: true,
JSX: true,
},
rules: {
'prettier/prettier': 2,
'no-var': 2,
'no-undef': 0,
'no-empty': 0,
'no-fallthrough': 0,
'no-plusplus': 0,
'no-nested-ternary': 0,
'no-restricted-syntax': 0,
'no-param-reassign': 0,
'no-unused-vars': 0,
'no-debugger': 1,
'no-empty-function': 0,
'no-underscore-dangle': 0,
'prefer-const': 1,
'spaced-comment': 1,
'quote-props': [1, 'as-needed', { unnecessary: false }],
'object-curly-spacing': [1, 'always'],
'object-shorthand': [1, 'always'],
'react-hooks/exhaustive-deps': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-var-requires': 0,
'import/no-unresolved': 0,
'import/no-duplicates': 0,
'import/no-named-as-default': 0,
'no-case-declarations': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'react/self-closing-comp': 1,
'react/display-name': 0,
'react/prop-types': 0,
'@typescript-eslint/ban-types': 0,
'@typescript-eslint/no-empty-interface': 0,
'react/no-unknown-property': 0
},
};