-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
30 lines (29 loc) · 862 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
module.exports = {
root: true,
env: {
browser: true,
es6: true,
},
parserOptions: {
ecmaVersion: 2018,
},
rules: {
'brace-style': 'warn', // [1tbs default, stroustrup, allman]
'comma-dangle': ['warn', 'always-multiline'],
'indent': ['warn', 2],
'no-unused-vars': 'warn',
'quotes': ['warn', 'single', { avoidEscape: true }],
'semi': ['warn', 'never'],
'array-bracket-spacing': ['warn', 'never'],
'comma-spacing': ['warn', { before: false, after: true }],
'key-spacing': ['warn'],
'keyword-spacing': ['warn'],
'no-multi-spaces': ['warn'],
'no-trailing-spaces': ['warn'],
'object-curly-spacing': ['warn', 'always'],
'space-before-function-paren': ['warn', 'always'],
'space-before-blocks': 'warn',
'space-infix-ops': ['warn'],
'space-in-parens': ['warn', 'never'],
},
}