-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
76 lines (76 loc) · 1.68 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
69
70
71
72
73
74
75
76
module.exports = {
env: {
browser: true,
es2021: true,
node: true
},
extends: ['plugin:prettier/recommended', 'airbnb', 'prettier'],
overrides: [],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
},
plugins: ['react'],
rules: {
'array-callback-return': 'off',
'jsx-a11y/click-events-have-key-events': 0,
'jsx-a11y/no-static-element-interactions': 0,
'react/react-in-jsx-scope': 'off',
'import/no-unresolved': 'off',
'import/no-anonymous-default-export': 'off',
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
singleQuote: true
}
],
'react/jsx-filename-extension': 'off',
'comma-dangle': 'off',
'react/function-component-definition': [
'error',
{
namedComponents: ['function-declaration', 'arrow-function'],
unnamedComponents: 'arrow-function'
}
],
'object-curly-newline': [
'error',
{
ObjectPattern: {
multiline: true
}
}
],
'linebreak-style': ['error', 'windows'],
'no-plusplus': [
'error',
{
allowForLoopAfterthoughts: true
}
],
'no-unused-vars': 'off',
'import/prefer-default-export': 'off',
'no-param-reassign': 'off',
'jsx-a11y/control-has-associated-label': [
'off',
{
labelComponents: [],
labelAttributes: [],
controlComponents: [],
assert: 'both',
depth: 25
}
],
'jsx-a11y/label-has-associated-control': [
'error',
{
components: [],
required: {
some: ['nesting', 'id']
},
allowChildren: false
}
]
}
};