-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
72 lines (72 loc) · 1.99 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"root": true,
"env": {
"es6": true,
"node": true,
"es2020": true,
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"project": "./tsconfig.json",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"ignorePatterns": "dist/*",
"rules": {
"no-case-declarations": "off",
"no-constant-condition": ["error", { "checkLoops": false }],
"semi": [
"error",
"never"
],
"eol-last": ["error", "always"],
"@typescript-eslint/no-unused-vars": ["error", {"args":"after-used"}],
"indent": [ 2, "tab", { "SwitchCase": 1 } ],
"operator-linebreak": ["error", "before"],
"comma-dangle": [ "error", "always-multiline" ],
"quote-props": [ "error", "as-needed" ],
"quotes": ["error", "single", { "avoidEscape": true }],
"array-bracket-spacing": ["error", "always", { "singleValue": false }],
"import/no-unresolved": [ 0 ],
"prefer-reflect": [ 0 ],
"no-undef": ["error", { "typeof": true }],
"no-console": "off",
"object-curly-spacing": ["error", "always"],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/explicit-module-boundary-types": ["error", {
"allowArgumentsExplicitlyTypedAsAny": true,
"allowTypedFunctionExpressions": true
}],
"@typescript-eslint/restrict-template-expressions": ["error", {
"allowAny": true,
"allowBoolean": true
}],
"space-before-function-paren": ["warn", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}],
"keyword-spacing": "error",
"space-before-blocks": "error"
}
}