-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
67 lines (67 loc) · 2.05 KB
/
index.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
module.exports = {
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module'
},
extends: [
'airbnb',
'airbnb/hooks',
'plugin:promise/recommended',
],
plugins: [
'react-hooks'
],
rules: {
'brace-style': ["error", "1tbs", {
allowSingleLine: false
}],
curly: ["error", "all"],
'import/order': ['error', {
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index']
}],
'jsx-a11y/label-has-associated-control': ['error', {
labelComponents: [],
labelAttributes: [],
controlComponents: [],
assert: 'either',
depth: 25
}],
'max-len': ['error', {
code: 120,
ignoreTrailingComments: true,
ignoreUrls: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreRegExpLiterals: true,
}],
'object-curly-newline': ['error', {
multiline: true,
minProperties: 2,
consistent: true
}],
'object-curly-spacing': ['error', 'always'],
'no-multiple-empty-lines': ['error', { max: 1 }],
'no-undef-init': ['error'],
'promise/catch-or-return': ['off'],
'promise/no-nesting': ['off'],
'react/destructuring-assignment': ['off'],
'react/jsx-props-no-spreading': ['off'],
'react-hooks/exhaustive-deps': ['error'],
'react-hooks/rules-of-hooks': ['error'],
'react/no-unstable-nested-components': ['off'],
'react/function-component-definition': ['error', {
namedComponents: 'arrow-function',
unnamedComponents: 'arrow-function'
}],
'react/jsx-sort-props': ['error', {
ignoreCase: true,
callbacksLast: false,
locale: 'en',
shorthandFirst: false,
shorthandLast: false,
noSortAlphabetically: false,
reservedFirst: false,
}],
'sort-keys': ['error', 'asc']
}
};