-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
48 lines (43 loc) · 1.01 KB
/
.eslintrc
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
{
"parserOptions": {
"ecmaVersion": 2018,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"extends": ["eslint:recommended", "plugin:node/recommended", "prettier"],
"env": {
"es6": true,
"node": true,
"mocha": true
},
"plugins": [
"prettier"
],
"globals": {
"document": false,
"navigator": false,
"window": false
},
"rules": {
"prettier/prettier": "error",
"linebreak-style": ["error", "unix"],
"no-console": 0,
"no-undef": 0,
"radix": 0,
"no-param-reassign": 0,
"node/exports-style": ["error", "module.exports"],
"node/prefer-global/buffer": ["error", "always"],
"node/prefer-global/console": ["error", "always"],
"node/prefer-global/process": ["error", "always"],
"node/prefer-global/url-search-params": ["error", "always"],
"node/prefer-global/url": ["error", "always"]
},
"overrides": [{
"files": ["*.spec.js", "*.test.js"],
"rules": {
"no-unused-expressions": 0
}
}]
}