-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
46 lines (45 loc) · 1.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
import ks from "eslint-config-ks";
export default ks(
{
prettier: true,
json: true,
typescript: true,
project: ["tsconfig.json"],
},
[
{
ignores: ["src/utils/dbSchemaParser.ts"],
files: ["src/**/*.ts"],
rules: {
"prettier/prettier": "warn",
"security/detect-object-injection": "off",
"import/no-named-as-default-member": "off",
"max-depth": ["error", 6],
"unicorn/prefer-ternary": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
args: "all",
argsIgnorePattern: "^_",
caughtErrors: "all",
caughtErrorsIgnorePattern: "^_",
destructuredArrayIgnorePattern: "^_",
varsIgnorePattern: "^_",
ignoreRestSiblings: true,
},
],
"@typescript-eslint/no-unnecessary-condition": "warn",
"unicorn/no-await-expression-member": "warn",
"unicorn/no-null": "off",
"@typescript-eslint/naming-convention": [
"warn",
{
format: ["PascalCase"],
trailingUnderscore: "allow",
selector: "typeLike",
},
],
},
},
],
);