-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc.json
25 lines (25 loc) · 993 Bytes
/
.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
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["plugin:@typescript-eslint/recommended"],
"rules": {
"quotes": [2, "double"],
"indent": ["error", 2, { "SwitchCase": 1 }],
"camelcase": "error",
"no-console": "error",
"no-var": "error",
"eqeqeq": "error",
"no-return-await": "error",
"space-before-function-paren": ["error", "always"],
"no-multiple-empty-lines": "error",
"keyword-spacing": ["error", { "before": true, "after": true }],
"@typescript-eslint/no-array-constructor": "off",
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/semi": ["error"],
"@typescript-eslint/consistent-type-imports": ["error"],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": ["error", { "allowTypedFunctionExpressions": true }],
"@typescript-eslint/ban-ts-ignore": "off"
}
}