-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
30 lines (30 loc) · 943 Bytes
/
.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
{
root: true,
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module'
},
extends: ['eslint:recommended', 'airbnb-base'],
env: {
'node': true
},
rules: {
'import/no-unresolved': 'off',
'import/no-extraneous-dependencies': 'off',
'func-names': 'off',
'no-multi-spaces': 'off',
'spaced-comment': ["error", "always", { "markers": ["/"] }],
'comma-dangle': ['error', 'always-multiline'],
'padded-blocks': 'off',
'linebreak-style': 'off',
'class-methods-use-this': 'off',
'indent': ['error', 2],
'max-len': ['error', 120, 2, { ignoreComments: true }],
'no-unused-vars': ['error', { vars: 'local', args: 'after-used' }],
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 1 }],
'no-nested-ternary': 'off',
'no-underscore-dangle': ['error', {'allow': ['_super', '_lookupFactory']}],
'object-shorthand': ['error', 'methods'],
'no-console': 'off',
}
}