-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.js
49 lines (48 loc) · 892 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
'use strict';
module.exports = {
'env': {
'node': true,
'es6': true
},
'parserOptions': {
'ecmaVersion': 2020
},
'rules': {
'indent': ['error', 'tab'],
'no-unused-vars': 2,
'no-undef': 2,
'eqeqeq': 2,
'no-underscore-dangle': 0,
'guard-for-in': 2,
'no-extend-native': 2,
'wrap-iife': 2,
'new-cap': 2,
'no-caller': 2,
'semi': [2, 'always'],
'strict': [2, 'global'],
'quotes': [1, 'single'],
'no-loop-func': 2,
'no-irregular-whitespace': 1,
'no-multi-spaces': 2,
'one-var': [2, 'never'],
'constructor-super': 2,
'no-this-before-super': 2,
'no-var': 2,
'prefer-const': 1,
'no-const-assign': 2
},
overrides: [
{
files: ['**/*.test.js', 'test/testhelper.js'],
env: {
mocha: true,
},
'globals': {
'fetch': true,
'spawnTest': true,
'spawnTestWithTempdir': true,
'describeWithPackages': true
}
},
],
};