-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
52 lines (51 loc) · 1.48 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
43
44
45
46
47
48
49
50
51
52
{
"extends": "@soluzioni-futura/eslint-config-soluzioni-futura",
"env": {
"node": true
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"parserOptions": {
"sourceType": "module",
"project": "./tsconfig.json"
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"rules": {
"@typescript-eslint/type-annotation-spacing": "error",
"no-unused-vars": ["off"],
"@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",
"@typescript-eslint/member-delimiter-style": ["error", {
"multiline": {
"delimiter": "comma",
"requireLast": false
},
"singleline": {
"delimiter": "comma",
"requireLast": false
}
}]
}
}
]
}