-
Notifications
You must be signed in to change notification settings - Fork 26
/
.eslintrc.json
51 lines (51 loc) · 1.57 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"env": {
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"ignorePatterns": [
"**/test/**/*.ts"
],
"rules": {
"@typescript-eslint/array-type": ["error", { "default": "array" }],
"@typescript-eslint/class-name-casing": "error",
"@typescript-eslint/comma-spacing": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/func-call-spacing": "error",
"@typescript-eslint/indent": ["error", 4, { "SwitchCase": 1 }],
"@typescript-eslint/keyword-spacing": "error",
"@typescript-eslint/naming-convention": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/prefer-for-of": "warn",
"@typescript-eslint/quotes": ["error", "single"],
"@typescript-eslint/semi": "warn",
"@typescript-eslint/space-before-function-paren": ["error", {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/ban-ts-ignore": "off",
"comma-spacing": "off",
"curly": "warn",
"eqeqeq": "warn",
"func-call-spacing": "off",
"key-spacing": "off",
"no-case-declarations": "off",
"no-throw-literal": "warn",
"quotes": "off",
"semi": "off",
"space-before-function-paren": "off",
"indent": "off"
}
}