-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
35 lines (35 loc) · 1.32 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
{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": [
"@typescript-eslint/eslint-plugin"
],
"rules": {
"no-tabs": ["error", { "allowIndentationTabs": true }],
"no-extra-semi": "off",
"prefer-arrow-callback": "error",
"arrow-body-style": ["error", "always"],
"func-style": ["error", "expression"],
"@typescript-eslint/no-extra-semi": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/no-explicit-any": ["error"],
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/explicit-function-return-type": ["error"],
"@typescript-eslint/indent": ["error", "tab"],
"@typescript-eslint/semi": [2, "always"],
"@typescript-eslint/quotes": [2, "double", { "avoidEscape": true }],
"@typescript-eslint/space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}],
"@typescript-eslint/consistent-type-assertions": ["error", {
"assertionStyle": "as",
"objectLiteralTypeAssertions": "never"
}]
}
}