-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
46 lines (42 loc) · 1.01 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
// ESLint configuration <https://eslint.org/docs/user-guide/configuring>
{
"extends": "@kevinoid/eslint-config/node.js",
"rules": {
// Allow requiring devDependencies for build and test
"import/no-extraneous-dependencies": ["error", {
"devDependencies": [
"gulpfile.js",
"test-bin/**",
"test-lib/**",
"test/**"
]
}],
// Allow CommonJS modules
"unicorn/prefer-module": "off"
},
"overrides": [
{
"files": [
"bin/*.js"
],
"rules": {
// Executable scripts are not expected to have exports
"import/no-unused-modules": "off",
// Executable scripts should have a shebang
"n/shebang": "off"
}
},
{
// Preserve copied response json
"files": [
"test-lib/api-responses.js"
],
"rules": {
"comma-dangle": ["error", "never"],
"max-len": "off",
"quotes": ["error", "double"],
"quote-props": ["error", "always"]
}
}
]
}