-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
35 lines (35 loc) · 863 Bytes
/
.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
module.exports = {
env: {
browser: true,
es2021: true,
},
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
rules: {
'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,
}],
semi: ['error', 'always'],
indent: ['error', 2],
'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'],
},
};