-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
44 lines (40 loc) · 964 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
34
35
36
37
38
39
40
41
42
43
44
// 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",
// Don't prefer top-level await
// Since top-level await is only supported in ECMAScript Modules (ESM)
"unicorn/prefer-top-level-await": "off"
},
"overrides": [
{
"files": [
"bin/*.js"
],
"rules": {
// Executable scripts should have a shebang
"n/shebang": "off"
}
},
{
"files": [
"test*/*.js"
],
"rules": {
// Allow EventEmitter use in tests
"unicorn/prefer-event-target": "off"
}
}
]
}