forked from intity/epub-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
36 lines (36 loc) · 1.05 KB
/
eslint.config.js
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
module.exports = [{
"rules": {
//"consistent-return": "error",
"func-style": [
"warn",
"declaration", {
"allowArrowFunctions": true
}
],
"no-console": "warn",
"no-const-assign": "error",
"no-constant-condition": "error",
"no-eq-null": "error",
"no-promise-executor-return": "error",
"no-return-assign": "error",
"no-self-assign": "error",
"no-self-compare": "error",
"no-useless-assignment": "error",
"no-useless-call": "error",
"no-useless-catch": "error",
"no-useless-return": "error",
//"no-unused-expressions": "error",
"no-unused-private-class-members": "error",
"no-unused-vars": [
"warn",
{
"vars": "all",
"args": "none"
}
],
"no-var": "error",
"prefer-promise-reject-errors": "error",
"require-atomic-updates": "error",
//"require-await": "error"
}
}]