-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
65 lines (65 loc) · 2.06 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
module.exports = {
env: {
browser: true,
es2020: true
},
extends: [
'airbnb',
'airbnb/hooks',
'plugin:@typescript-eslint/recommended'
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true
},
jsx: true,
useJSXTextNode: true,
ecmaVersion: 11,
sourceType: 'module'
},
globals: {
ENV_CONFIG: 'writable'
},
plugins: [
'react',
'@typescript-eslint'
],
rules: {
indent: ['error', 4],
'react/jsx-indent': ['error', 4],
'react/jsx-indent-props': ['error', 4],
'linebreak-style': 'off',
'comma-dangle': ['error', 'never'],
'class-methods-use-this': 'off',
'import/no-extraneous-dependencies': 'off',
'import/no-unresolved': 'off',
'import/extensions': 'off',
'no-param-reassign': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'react/jsx-props-no-spreading': 'off',
'react/self-closing-comp': 'off',
'react/prefer-stateless-function': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'react/no-did-mount-set-state': 'off',
'react/forbid-prop-types': 'off',
'react/destructuring-assignment': 'off',
'max-classes-per-file': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'import/prefer-default-export': 'off',
'max-len': 'off',
'react/jsx-filename-extension': 'off',
'react/prop-types': 'off',
'react/sort-comp': 'off',
'react/jsx-closing-tag-location': 'off',
'react/no-unescaped-entities': 'off',
'react/no-array-index-key': 'off',
'react/jsx-no-bind': 'off',
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': ['error'],
'@typescript-eslint/no-var-requires': 'off',
'no-shadow': 'off',
'jsx-a11y/control-has-associated-label': 'off'
}
};