-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.js
37 lines (36 loc) · 901 Bytes
/
index.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
37
"use strict";
module.exports = {
env: {
node: true,
es6: true,
mocha: true,
es2024: true,
// es2023: true, /* enable with mocha 9 */
// es2024: true, /* enable after 2024-04-30, when node 18 LTS ends */
},
root: true,
extends: ["eslint:recommended"],
globals: {
CONT: "readonly",
STOP: "readonly",
DENY: "readonly",
DENYSOFT: "readonly",
DENYDISCONNECT: "readonly",
DISCONNECT: "readonly",
OK: "readonly",
NEXT_HOOK: "readonly",
DELAY: "readonly",
DENYSOFTDISCONNECT: "readonly",
},
parserOptions: {
ecmaVersion: "latest",
},
rules: {
// 0 = off // 1 = warn // 2 = error
"no-empty": ["error", { allowEmptyCatch: true }],
"no-undef": "warn",
"no-console": "off",
"no-constant-condition": ["error", { checkLoops: false }],
"prefer-const": ["error", { ignoreReadBeforeAssign: true }],
},
};