-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc
55 lines (55 loc) · 1.24 KB
/
.eslintrc
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
48
49
50
51
52
53
54
55
{
"extends": ["hardcore", "hardcore/node", "plugin:jsdoc/recommended"],
"env": {
"node": true
},
"parserOptions": {
"es2021": false,
"ecmaVersion": 2018,
"ecmaFeatures": {
"sourceType": "script"
}
},
"rules": {
"import/no-commonjs": "off",
"unicorn/prefer-module": "off",
"putout/putout": [
"error",
{
"rules": {
"apply-optional-chaining": "off",
"convert-commonjs-to-esm/require": "off",
"convert-commonjs-to-esm/exports": "off",
"convert-commonjs-to-esm/commons": "off"
}
}
],
"jsdoc/require-jsdoc": [
"error",
{
"publicOnly": true,
"require": {
"ArrowFunctionExpression": true,
"ClassDeclaration": true,
"ClassExpression": true,
"FunctionDeclaration": true,
"FunctionExpression": true,
"MethodDefinition": true
}
}
]
},
"overrides": [
{
"files": ["./**/*.test.js"],
"extends": ["plugin:ava/recommended"],
"parserOptions": {
"sourceType": "script"
},
"rules": {
"node/no-unpublished-require": 0,
"id-length": ["error", { "exceptions": ["t"] }]
}
}
]
}