-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
46 lines (45 loc) · 1.29 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint'
],
extends: [
'standard',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended'
],
rules: {
'indent': ['error', 4, { SwitchCase: 1 }],
'no-var': ['error'],
'semi': [2, 'never'],
'no-multiple-empty-lines': 0,
'no-unused-expressions': 0,
'padded-blocks': 0,
'prefer-promise-reject-errors': 0,
'max-len': [2, 120, 4, {
ignoreComments: true,
ignoreStrings: true,
ignoreRegExpLiterals: true,
ignoreTemplateLiterals: true
}],
'quotes': ['warn', 'single'],
'quote-props': [1, 'consistent-as-needed'],
'no-cond-assign': [2, 'except-parens'],
'no-unused-vars': [1, { vars: 'local', args: 'none' }],
'radix': 1,
'eqeqeq': ['error', 'always'],
'space-infix-ops': 1,
'space-before-function-paren': 1,
'default-case': 1,
'no-param-reassign': 0,
'curly': 2,
'import/no-unresolved': [2, { ignore: ['^~/'] }]
},
env: {
browser: true,
node: true
}
}