-
Notifications
You must be signed in to change notification settings - Fork 19
/
.eslintrc.js
40 lines (40 loc) · 1.13 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
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2017,
},
env: {
browser: true,
node: true
},
extends: ['eslint:recommended'],
rules:{
'indent': ['error', 'tab'],
'semi': ['error', 'always'],
'no-console': 0,
'new-cap': 0,
'no-useless-escape': 0,
'no-redeclare': 0,
'linebreak-style': ['error', 'unix'],
'brace-style': ['error', '1tbs'],
'semi': ['error', 'always'],
'quotes': ['error', 'single'],
'eqeqeq': ['error', 'always'],
'curly': ['error', 'multi-line'],
'no-shadow-restricted-names': ['error'],
'no-labels': ['error'],
'no-extend-native': ['error'],
'space-unary-ops': ['error'],
'space-infix-ops': ['error'],
'no-self-assign': ['error'],
'no-throw-literal': ['warn'],
'no-use-before-define': ['error', {
'variables': true,
'functions': false,
'classes': false
}],
'no-multi-assign': ['warn'],
'no-invalid-this': ['warn'],
'new-cap': ['error'],
},
};