-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
83 lines (81 loc) · 2.2 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import pumpnEslintConfig from "@pumpn/eslint-config";
const eslintConfig = [
...pumpnEslintConfig,
{
rules: {
"@eslint-react/naming-convention/filename": "off",
"func-params-args/func-args": [
"warn",
{
global: 3,
join: -1,
reduce: 4
}
],
"import-x/no-namespace": "off",
"import-x/no-restricted-paths": "off",
"perfectionist/sort-classes": [
"error",
{
groups: [
"index-signature",
["private-static-property", "private-static-accessor-property"],
["private-static-get-method", "private-static-set-method"],
["static-property", "static-accessor-property"],
["static-get-method", "static-set-method"],
["protected-static-property", "protected-static-accessor-property"],
["protected-static-get-method", "protected-static-set-method"],
"static-block",
["property", "accessor-property"],
["get-method", "set-method"],
["protected-property", "protected-accessor-property"],
["protected-get-method", "protected-set-method"],
["private-property", "private-accessor-property"],
["private-get-method", "private-set-method"],
"constructor",
["static-method", "static-function-property"],
["protected-static-method", "protected-static-function-property"],
["private-static-method", "private-static-function-property"],
["method", "function-property"],
["protected-method", "protected-function-property"],
["private-method", "private-function-property"],
"unknown"
],
partitionByComment: String.raw`\/\/`
}
],
"regexp/require-unicode-sets-regexp": "error",
"security/detect-non-literal-regexp": "off",
"security/detect-possible-timing-attacks": "off",
"unicorn/prevent-abbreviations": [
"error",
{
ignore: [/mod/iv]
}
]
}
},
{
files: ["**/*.doc.js"],
rules: {
"import-x/unambiguous": "off",
"unicorn/no-empty-file": "off",
"unicorn/prevent-abbreviations": "off"
}
},
{
files: ["dev.js"],
rules: {
"unicorn/prevent-abbreviations": "off"
}
},
{
ignores: [
"**/*.md/*.js",
"**/*.jsdoc-defaults",
"**/*.jsdoc-params",
"**/*.jsdoc-properties"
]
}
];
export default eslintConfig;