-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
55 lines (55 loc) · 1.25 KB
/
.eslintrc.json
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
51
52
53
54
55
{
"env": {
"commonjs": true,
"es6": true,
"node": true,
"mocha": true
},
"extends": [
"airbnb-base",
"prettier",
"plugin:node/recommended",
"plugin:mocha/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"MyModuleExports": "readonly",
"ErrorHandler": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"plugins": ["prettier", "mocha", "no-loops"],
"rules": {
"func-names": 0,
"no-console": 1,
"no-underscore-dangle": 1,
"no-loops/no-loops": 1,
"no-param-reassign": 1,
"no-unused-vars": 1,
"prettier/prettier": 2,
"mocha/no-skipped-tests": 2,
"mocha/no-exclusive-tests": 2,
"node/no-missing-require": [
"error",
{
"allowModules": [],
"resolvePaths": ["."],
"tryExtensions": [".js", ".json", ".node"]
}
] // This one is for require
},
"settings": {
"mocha/additionalCustomNames": [
{ "name": "describeModule", "type": "suite", "interfaces": ["BDD"] },
{ "name": "testModule", "type": "testCase", "interfaces": ["TDD"] }
],
"import/resolver": {
"node": {
"paths": ["."],
"extensions": [".js"]
}
} // This one is for Import
}
}