-
Notifications
You must be signed in to change notification settings - Fork 15
/
.eslintrc.js
48 lines (48 loc) · 1.1 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
41
42
43
44
45
46
47
48
module.exports = {
"extends": ["eslint:recommended", "plugin:node/recommended"],
"env": {
"es6": true,
"mocha": true
},
"ignorePatterns": [
"!packages/node_modules/*"
],
"globals": {},
"rules": {
"semi": [
2,
"always"
],
"curly": 2,
"no-eq-null": 2,
"no-extend-native": 2,
"indent": [
2,
4,
{
"SwitchCase": 1
}
],
"guard-for-in": 2,
"wrap-iife": [
2,
"any"
],
"no-irregular-whitespace": 2,
"no-loop-func": 2,
"no-shadow": 0,
"dot-notation": 0,
"no-proto": 2,
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }]
},
"overrides": [{
"files": [
"test/**/*_spec.js",
"packages/node_modules/*/test/**/*_spec.js"
],
"rules": {
"node/no-unpublished-require": 0,
"no-unused-vars": ["error", { "varsIgnorePattern": "should|expect" }]
}
}]
};