forked from js-tasks-ru/js-20210309-2_gluknik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
65 lines (62 loc) · 1.56 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,
es6: true,
jest: true
},
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
rules: {
'no-debugger': 'warn',
'no-dupe-keys': 'warn',
'no-dupe-args': 'warn',
'no-duplicate-case': 'warn',
'no-empty': 'warn',
'no-extra-semi': 'warn',
'no-func-assign': 'warn',
'no-obj-calls': 'warn',
'no-sparse-arrays': 'warn',
'no-unreachable': 'warn',
'valid-typeof': 'warn',
'no-multi-spaces': 'warn',
'no-with': 'warn',
'curly': 'warn',
'no-unused-expressions': 'warn',
'no-shadow-restricted-names': 'warn',
'no-undefined': 'off',
'camelcase': 'warn',
'indent': ['warn', 2, {
// continuation indent
MemberExpression: 'off',
}],
'array-bracket-spacing': ['warn', 'never'],
'comma-spacing': 'warn',
'comma-style': 'warn',
'computed-property-spacing': 'warn',
'func-call-spacing': 'warn',
'key-spacing': 'warn',
'keyword-spacing': 'warn',
'new-cap': 'warn',
'no-mixed-spaces-and-tabs': 'warn',
'one-var': ['warn', {
var: 'never',
let: 'never',
const: 'never'
}],
'semi': 'warn',
'space-in-parens': ['warn', 'never'],
'space-before-blocks': 'warn',
'unicode-bom': 'warn',
'new-parens': 'warn',
'no-nested-ternary': 'warn',
'space-infix-ops': 'warn',
'space-unary-ops': ['warn', {words: true, nonwords: false}],
// ES2015
'constructor-super': 'warn',
'no-this-before-super': 'warn',
'no-var': 'warn',
},
};