-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
50 lines (46 loc) · 962 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
50
'use strict';
module.exports = {
extends: 'airbnb-base',
rules: {
'class-methods-use-this': 0,
'consistent-return': 'warn',
'function-paren-newline': 0,
'import/no-self-import': 0,
'no-else-return': 0,
'no-param-reassign': 0,
'no-shadow': 'warn',
'no-underscore-dangle': 0,
'object-curly-newline': 0,
},
overrides: [
{
files: ['test/*.js'],
rules: {
'func-names': 0,
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'mocha/no-exclusive-tests': 'error',
'mocha/no-identical-title': 'error',
'mocha/no-pending-tests': 'warn',
},
env: {
mocha: true,
},
plugins: [
'mocha',
],
}
],
parserOptions: {
sourceType: 'script',
},
settings: {
'import/resolver': {
node: {
moduleDirectory: [
'node_modules',
'.',
]
}
}
}
};