-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
35 lines (35 loc) · 850 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
31
32
33
34
35
module.exports = {
'env': {
'mocha': true,
'es6': true,
'node': true
},
'extends': 'eslint:recommended',
'parserOptions': {
'ecmaVersion': 2020
},
'rules': {
'indent': [
'error',
4
],
'max-len': ['warn', 120],
'no-restricted-syntax': ['error', 'WithStatement'],
'no-use-before-define': ['error', { functions: false, classes: true }],
'space-before-function-paren': ['error', 'never'],
'one-var': ['error', {'const': 'never', 'let': 'never'}],
// "linebreak-style": [
// "error",
// "windows"
// ],
'quotes': [
'error',
'single'
],
'semi': [
'error',
'always'
],
'no-console': 2
}
};