-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
53 lines (53 loc) · 1.37 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
module.exports = {
env: {
browser: true,
es2021: true,
},
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
rules: {
semi: ['error', 'always'],
indent: ['error', 2],
'no-irregular-whitespace': ['error', {
skipStrings: true,
skipComments: true,
skipRegExps: true,
skipTemplates: true,
}],
'multiline-comment-style': ['error', 'starred-block'],
'object-property-newline': ['error', {
allowAllPropertiesOnSameLine: false,
allowMultiplePropertiesPerLine: false,
}],
'object-curly-newline': ['error', {
minProperties: 2,
multiline: true,
}],
'no-multiple-empty-lines': ['error', {
max: 1,
maxEOF: 0,
}],
'no-param-reassign': 'off',
'no-underscore-dangle': 'off',
'class-methods-use-this': 'off',
'max-len': [2, {
code: 1000,
ignorePattern: '^import .*',
}],
'linebreak-style': ['error', process.platform === 'win32' ? 'windows' : 'unix'],
'space-infix-ops': ['error', { int32Hint: false }],
'space-before-function-paren': ['error', {
anonymous: 'always',
named: 'always',
asyncArrow: 'always',
}],
'keyword-spacing': ['error', {
before: true,
after: true,
}],
'object-curly-spacing': ['error', 'always'],
quotes: ['error', 'single', { allowTemplateLiterals: true }],
},
};