-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
48 lines (48 loc) · 1.2 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
module.exports = {
root: true,
env: {
es6: true,
node: true,
},
parserOptions: {
ecmaVersion: 6,
ecmaFeatures: {
experimentalObjectRestSpread: true,
},
parser: 'babel-eslint',
},
extends: [],
rules: {
'semi': ['warn', 'never'],
'comma-dangle': ['warn', 'always-multiline'],
'no-trailing-spaces': ['warn', {
skipBlankLines: false,
ignoreComments: true,
}],
'space-before-function-paren': ['warn', 'always'],
'no-console': 'off',
'no-cond-assign': ['error', 'always'],
'indent': ['warn', 2],
'arrow-parens': ['warn', 'as-needed'],
'no-prototype-builtins': 'warn',
'no-unused-vars': 'warn',
'template-curly-spacing': 'warn',
'key-spacing': ['warn', {
'beforeColon': false,
'afterColon': true,
'mode': 'strict',
}],
'no-multiple-empty-lines': ['warn', {
max: 2,
maxEOF: 1,
}],
'quote-props': ['warn', 'consistent-as-needed'],
'no-unused-vars': ['warn', { 'argsIgnorePattern': '^_' }],
'padded-blocks': ['warn', 'never'],
'eol-last': ['warn', 'always'],
'quotes': ['warn', 'single', {
'avoidEscape': true,
'allowTemplateLiterals': true,
}],
},
}