-
Notifications
You must be signed in to change notification settings - Fork 33
/
eslint.config.cjs
47 lines (47 loc) · 1.02 KB
/
eslint.config.cjs
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
47
[
{
"extends": ["airbnb-base", "prettier", "plugin:node/recommended"],
"plugins": ["prettier", "node"],
"env": {
"node": true,
"es2022": true
},
"parserOptions": {
"ecmaVersion": 2022,
"allowImportExportEverywhere": true
},
"rules": {
"prettier/prettier": "error",
"strict": "off",
"consistent-return": "off",
"import/extensions": "off",
"global-require": "off",
"no-restricted-syntax": "warn",
"guard-for-in": "warn",
"prefer-destructuring": "warn",
"import/prefer-default-export": "off",
"no-unpublished-import": "off",
"node/no-unsupported-features/es-syntax": [
"warn",
{
"version": ">=18.0.0",
"ignores": ["modules"]
}
]
},
"overrides": [
{
"files": ["test/**/*.js"],
"env": {
"mocha": true
}
},
{
"files": ["assets/**/*.js"],
"env": {
"browser": true
}
}
]
}
];