-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
63 lines (62 loc) · 1.45 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
56
57
58
59
60
61
62
63
{
"env": {
"es2020": true,
"node": true
},
"extends": [
"eslint:recommended",
"airbnb-base",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:import/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "simple-import-sort", "prettier", "import"],
"rules": {
"linebreak-style": "off",
"import/extensions": "off",
"import/no-unresolved": "error",
"import/no-default-export": "error",
"import/no-relative-packages": "error",
"import/prefer-default-export": "off",
"no-restricted-imports": [
"error",
{
"patterns": [".*"]
}
],
"no-console": "off",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-unused-expressions": "warn",
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
]
},
"overrides": [
{
"files": "**/controllers/**/*.ts",
"rules": {
"import/no-default-export": "off",
"import/prefer-default-export": "off"
}
}
],
"settings": {
"import/resolver": {
"typescript": {}
}
}
}