/
.eslintrc.json
57 lines (57 loc) · 1.76 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
{
"env": { "browser": true, "node": true, "es6": true },
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"plugins": ["@typescript-eslint", "import", "eslint-plugin-import-helpers"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": { "jsx": true },
"project": "./tsconfig.json"
},
"rules": {
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_" }
],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/switch-exhaustiveness-check": "error",
"import/no-self-import": "error",
"import/no-cycle": "error",
"import/no-useless-path-segments": "error",
"import/no-relative-parent-imports": "error",
"import/first": "error",
"import/newline-after-import": "error",
"arrow-body-style": ["error", "as-needed"],
"require-await": "error",
"sort-imports": [
"error",
{
"ignoreCase": true,
"ignoreDeclarationSort": true
}
],
"no-duplicate-imports": "error",
"no-throw-literal": "error",
"newline-before-return": "error",
"no-return-await": "error"
},
"overrides": [
{
"files": ["**/@types/**/*"],
"rules": {
"@typescript-eslint/consistent-type-definitions": "off"
}
}
]
}