-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
90 lines (90 loc) · 3.14 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"env": {
"browser": true,
"es6": true
},
"globals": {
"ENV": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2018
},
"rules": {
"@typescript-eslint/indent": ["warn", 4],
"@typescript-eslint/explicit-function-return-type": [
"warn",
{ "allowExpressions": true }
],
"@typescript-eslint/no-unused-vars": [
2,
{ "args": "all", "argsIgnorePattern": "^_" }
],
"@typescript-eslint/array-type": ["warn", "generic"],
"max-len": [
"warn",
{
"code": 100,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
],
"indent": "off",
"no-unused-vars": "off",
"linebreak-style": ["warn", "unix"],
"quotes": ["warn", "single"],
"semi": ["warn", "always"],
"no-var": "warn",
"prefer-const": "warn",
"dot-notation": "warn",
"dot-location": ["warn", "property"],
"eqeqeq": ["warn", "smart"],
"no-implicit-coercion": "warn",
"no-useless-return": "warn",
"array-bracket-newline": ["warn", { "multiline": true }],
"array-bracket-spacing": ["warn", "never"],
"block-spacing": "warn",
"brace-style": ["warn", "1tbs", { "allowSingleLine": true }],
"comma-dangle": ["warn", "always-multiline"],
"comma-spacing": ["warn", { "before": false, "after": true }],
"eol-last": "warn",
"func-call-spacing": ["warn", "never"],
"function-paren-newline": ["warn", "multiline"],
"implicit-arrow-linebreak": ["warn", "beside"],
"keyword-spacing": "warn",
"lines-between-class-members": [
"warn",
"always",
{ "exceptAfterSingleLine": true }
],
"newline-per-chained-call": ["warn", { "ignoreChainWithDepth": 2 }],
"no-multiple-empty-lines": ["warn", { "max": 1 }],
"no-trailing-spaces": "warn",
"no-unneeded-ternary": "warn",
"no-whitespace-before-property": "warn",
"nonblock-statement-body-position": ["warn", "beside"],
"object-curly-spacing": ["warn", "always"],
"one-var": ["warn", "never"],
"operator-assignment": "warn",
"operator-linebreak": ["warn", "before"],
"padded-blocks": ["warn", "never"],
"space-before-blocks": "warn",
"space-before-function-paren": [
"warn",
{ "anonymous": "always", "named": "never", "asyncArrow": "always" }
],
"space-in-parens": "warn",
"space-infix-ops": "warn",
"arrow-spacing": "warn",
"no-confusing-arrow": "warn",
"no-useless-rename": "warn",
"prefer-numeric-literals": "warn",
"prefer-template": "warn",
"sort-imports": ["warn", { "ignoreCase": true }],
"camelcase": "warn"
}
}