-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
42 lines (42 loc) · 1.3 KB
/
.eslintrc
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
{
"root": true,
"extends": "@soluzioni-futura/eslint-config-soluzioni-futura",
"ignorePatterns": [
"node_modules",
"dist"
],
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"extends": "plugin:@typescript-eslint/recommended",
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"@typescript-eslint/type-annotation-spacing": ["error"],
"@typescript-eslint/no-unused-vars": ["warn"],
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"any": {},
"unknown": {}
}
}
],
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unsafe-return": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/class-literal-property-style": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/typedef": "error"
}
}
]
}