-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
114 lines (114 loc) · 3.17 KB
/
.eslintrc
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"extends": ["eslint:recommended", "airbnb", "prettier"],
"plugins": ["prettier"],
"globals": {
"window": true,
"document": true,
"angular": true
},
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx"]
}
],
"complexity": 0,
"max-depth": ["warn", 4],
"max-lines": [
"warn",
{
"max": 2500,
"skipBlankLines": true
}
],
"max-nested-callbacks": ["error", 3],
"max-params": ["warn", 4],
"brace-style": [2, "1tbs"],
"indent": [
"warn",
4,
{
"SwitchCase": 1
}
],
"array-bracket-spacing": [
"error",
"never",
{
"objectsInArrays": false
}
],
"object-curly-spacing": ["error", "never"],
"curly": "error",
"import/no-named-as-default": 0,
"space-in-parens": ["error", "never"],
"no-multiple-empty-lines": [
"error",
{
"max": 1
}
],
"space-before-blocks": ["error"],
"no-multi-spaces": ["error"],
"no-extra-semi": "error",
"semi": ["error", "always"],
"no-unused-vars": ["error"],
"no-console": ["warn"],
"no-useless-escape": ["off"],
"keyword-spacing": ["error"],
"key-spacing": [
"error",
{
"afterColon": true
}
],
"strict": 0,
"space-infix-ops": "error",
"eqeqeq": "error",
"no-eq-null": "error",
"no-irregular-whitespace": [
"error",
{
"skipComments": true
}
],
"import/prefer-default-export": 0,
"react/destructuring-assignment": 0,
"react/jsx-no-bind": 0,
"import/extensions": 0,
"no-use-before-define": 0,
"consistent-return": 0,
"no-param-reassign": 0,
"no-inner-declarations": 0,
"react/jsx-closing-tag-location": 0,
"react/require-default-props": 0,
"react/require-extension": 0,
"react/self-closing-comp": 0,
"react/sort-comp": 0,
"prefer-regex-literals": 0,
"no-unsafe-optional-chaining": 0,
"react/jsx-no-useless-fragment": 0,
"react/no-unstable-nested-components": 0,
"react/function-component-definition": 0,
"no-restricted-syntax": "off",
"no-underscore-dangle": "off",
"no-multi-assign": "off",
"prefer-destructuring": "off",
"global-require": "off",
"import/no-dynamic-require": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-noninteractive-element-interactions": 0,
"react/jsx-props-no-spreading": 0,
"class-methods-use-this": "off",
"no-await-in-loop": "off",
"no-plusplus": 0
}
}