-
Notifications
You must be signed in to change notification settings - Fork 30
/
.eslintrc
149 lines (149 loc) · 4.13 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{
"env": {
"browser": false,
"es6": true,
"mocha": true,
"node": true,
"worker": false,
"jest": true
},
"extends": ["airbnb"],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"globalReturn": true,
"impliedStrict": true,
"destructuring": true,
"restParams": true,
"spread": true
}
},
"rules": {
"array-bracket-spacing": "warn",
"array-callback-return": "warn",
"arrow-body-style": "off",
"arrow-parens": "off",
"arrow-spacing": [
"warn",
{
"after": true,
"before": true
}
],
"camelcase": "off",
"class-methods-use-this": "warn",
"comma-dangle": [
"warn",
{
"arrays": "only-multiline",
"objects": "only-multiline",
"imports": "only-multiline",
"exports": "only-multiline",
"functions": "ignore"
}
],
"consistent-return": "off",
"function-paren-newline": "off",
"global-require": "off",
"guard-for-in": "off",
"implicit-arrow-linebreak": "off",
"import/extensions": "warn",
"import/first": "off",
"import/newline-after-import": "off",
"import/no-extraneous-dependencies": "off",
"import/no-named-as-default": "warn",
"import/no-named-as-default-member": "warn",
"import/no-useless-path-segments": "warn",
"import/order": "off",
"import/prefer-default-export": "off",
"indent": "warn",
"jsx-a11y/alt-text": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/media-has-caption": "off",
"jsx-a11y/mouse-events-have-key-events": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/no-noninteractive-tabindex": "off",
"jsx-a11y/no-static-element-interactions": "off",
"lines-between-class-members": "off",
"max-len": [
"off",
{
"code": 98,
"comments": 120,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreUrls": true,
"tabWidth": 2
}
],
"new-parens": "warn",
"no-bitwise": "off",
"no-case-declarations": "warn",
"no-console": [
"warn",
{
"allow": ["error"]
}
],
"no-continue": "off",
"no-else-return": "off",
"no-empty": "warn",
"no-extra-boolean-cast": "off",
"no-lonely-if": "warn",
"no-mixed-operators": "off",
"no-mixed-spaces-and-tabs": "warn",
"no-multi-assign": "off",
"no-multiple-empty-lines": "warn",
"no-multi-spaces": "warn",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-prototype-builtins": "off",
"no-restricted-globals": "off",
"no-restricted-properties": "off",
"no-restricted-syntax": "warn",
"no-return-assign": "off",
"no-return-await": "warn",
"no-shadow": "warn",
"no-tabs": "warn",
"no-trailing-spaces": "warn",
"no-undef-init": "off",
"no-underscore-dangle": "off",
"no-unneeded-ternary": "off",
"no-unreachable": "warn",
"no-unused-vars": ["warn", {
"ignoreRestSiblings": true
}],
"no-useless-escape": "warn",
"no-useless-return": "warn",
"no-warning-comments": "off",
"object-curly-newline": [
"off",
{
"ObjectExpression": { "multiline": true, "minProperties": 3 },
"ObjectPattern": { "multiline": true, "minProperties": 3 },
"ImportDeclaration": { "multiline": true, "minProperties": 3 },
"ExportDeclaration": { "multiline": true, "minProperties": 3 }
}
],
"object-curly-spacing": "off",
"object-property-newline": "off",
"operator-assignment": "off",
"operator-linebreak": "off",
"padded-blocks": "off",
"prefer-const": "warn",
"prefer-destructuring": "off",
"prefer-promise-reject-errors": "warn",
"prefer-spread": "warn",
"prefer-template": "warn",
"quotes": "off",
"semi": "warn",
"space-before-function-paren": "off",
"spaced-comment": "off",
"space-in-parens": "warn"
}
}