-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
32 lines (29 loc) · 1.52 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
module.exports = {
env: {
node: true,
es6: true,
},
extends: 'eslint:recommended',
parserOptions: {
ecmaVersion: 6,
},
rules: {
'arrow-parens': ['error', 'as-needed' ],
'camelcase': ['error', {'properties': 'always'} ],
'comma-dangle': ['error', 'always-multiline' ],
'comma-spacing': ['error', {'before': false, 'after': true} ],
'eol-last': ['error', ],
'eqeqeq': ['error', ],
'indent': ['error', 2, {SwitchCase: 1} ],
'linebreak-style': ['error', 'unix' ],
'multiline-ternary': ['error', 'never' ],
'no-console': ['warn', {allow: ['info', 'warn', 'error']}],
'no-debugger': ['warn', ],
'no-unused-expressions': ['error', ],
'no-use-before-define': ['error', {classes: false} ],
'quotes': ['error', 'backtick' ],
'semi': ['error', 'always' ],
'space-before-blocks': ['error', 'always' ],
'space-before-function-paren': ['error', 'never' ],
},
};