forked from davidchambers/doctest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
34 lines (34 loc) · 1 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
{
"root": true,
"extends": ["./node_modules/sanctuary-style/eslint-es6.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": ["README.md"],
"globals": {"doctest": "readonly"},
"rules": {
"no-extra-semi": ["off"],
"no-unused-vars": ["error", {"varsIgnorePattern": "^(toFahrenheit)$"}]
}
},
{
"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/commonjs/**/index.js"],
"parserOptions": {"sourceType": "script"}
}
]
}