-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
55 lines (55 loc) · 1.3 KB
/
.eslintrc.json
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
{
"env": {
"node": true,
"es6": true,
"jest": true
},
"plugins": [
"@typescript-eslint",
"typescript-sort-keys",
"import",
"security",
"simple-import-sort",
"unused-imports",
"prettier"
],
"extends": ["eslint:recommended", "prettier", "plugin:security/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"project": "tsconfig.json",
"tsconfigRootDir": "./",
"ecmaVersion": "latest"
},
"rules": {
"prettier/prettier": 2,
"newline-before-return": 1,
"prefer-template": "error",
"max-lines": ["warn", { "max": 300 }],
"no-console": ["warn", { "allow": ["error", "warn", "debug"] }],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"args": "after-used",
"argsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_"
}
],
"@typescript-eslint/prefer-nullish-coalescing": "warn",
"typescript-sort-keys/interface": ["error", "asc"],
"security/detect-object-injection": 0,
"no-case-declarations": 0,
"simple-import-sort/imports": [
"error",
{
"groups": [["@", "^@?\\w"]]
}
],
"unused-imports/no-unused-imports": "error",
"simple-import-sort/exports": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"import/first": "error"
}
}