-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
.eslintrc.json
33 lines (33 loc) · 939 Bytes
/
.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
{
"root": true,
"extends": ["./node_modules/sanctuary-style/eslint.json"],
"parserOptions": {"ecmaVersion": 2020, "sourceType": "module"},
"env": {"node": true},
"rules": {
"comma-dangle": ["error", {"arrays": "always-multiline", "objects": "always-multiline", "imports": "always-multiline", "exports": "always-multiline", "functions": "never"}]
},
"overrides": [
{
"files": ["bin/doctest"],
"parserOptions": {"sourceType": "script"}
},
{
"files": ["lib/doctest.js"],
"rules": {
"no-multiple-empty-lines": ["error", {"max": 2, "maxEOF": 0}],
"spaced-comment": ["error", "always", {"markers": ["/"]}]
}
},
{
"files": ["test/**/*.js"],
"rules": {
"max-len": ["off"]
}
},
{
"files": ["test/commonjs/**/index.js"],
"parserOptions": {"sourceType": "script"},
"globals": {"__doctest": "readonly"}
}
]
}