-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
55 lines (52 loc) · 1.19 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
import { main } from "@effective/eslint-config"
export default [
{
ignores: [
".*/**/*",
"build/**/*",
"public/**/*",
"sst-env.d.ts",
"sanity.types.ts"
]
},
{
...main,
rules: {
...main.rules,
"unicorn/no-null": "off",
"unicorn/prevent-abbreviations": "off",
"no-warning-comments": "off",
// Sanity uses "null" for empty values
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/naming-convention": "off",
"jsdoc/check-param-names": ["warn", { checkDestructured: false }],
"jsdoc/tag-lines": "off"
}
},
{
files: ["**/*.css.ts"],
rules: {
"@typescript-eslint/no-magic-numbers": "off",
"@typescript-eslint/naming-convention": [
"error",
{
selector: "variable",
format: ["camelCase"],
leadingUnderscore: "forbid",
trailingUnderscore: "forbid",
filter: {
regex: "[- ]",
match: false
}
}
]
}
},
{
files: ["**/*.test.ts"],
rules: {
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-magic-numbers": "off"
}
}
]