This repository has been archived by the owner on Feb 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
140 lines (140 loc) · 4.28 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
{
"parserOptions": {
"ecmaVersion": 2019
},
"extends": [
"eslint:all"
],
"env": {
"browser": true,
"es6": true,
"node": true
},
"rules": {
"array-bracket-newline": "off",
"array-bracket-spacing": ["error", "always"],
"array-element-newline": "off",
"arrow-parens": ["error", "as-needed"],
"camelcase": "off",
"comma-dangle": ["error", "always-multiline"],
"consistent-return": "off",
"dot-location": ["error", "property"],
"func-names": "off",
"function-call-argument-newline": "off",
"id-length": "off",
"indent": ["error", 4],
"init-declarations": "off",
"lines-around-comment": ["error", {
"beforeBlockComment": false
}],
"max-classes-per-file": "off",
"max-len": "off",
"max-lines": "off",
"max-lines-per-function": "off",
"max-params": "off",
"max-statements": "off",
"multiline-comment-style": "off",
"multiline-ternary": "off",
"new-cap": "off",
"no-continue": "off",
"no-confusing-arrow": "off",
"no-console": "off",
"no-extra-parens": "off",
"no-invalid-this": "off",
"no-magic-numbers": "off",
"no-mixed-operators": "off",
"no-multi-assign": "off",
"no-negated-condition": "off",
"no-nested-ternary": "off",
"no-param-reassign": "off",
"no-process-env": "off",
"no-process-exit": "off",
"no-return-assign": "off",
"no-ternary": "off",
"no-underscore-dangle": "off",
"no-warning-comments": "warn",
"object-curly-spacing": ["error", "always"],
"object-property-newline": "off",
"one-var": ["error", {
"initialized": "never",
"uninitialized": "always"
}],
"padded-blocks": ["error", "never"],
"prefer-arrow-callback": ["error", {
"allowNamedFunctions": true
}],
"prefer-destructuring": "off",
"prefer-named-capture-group": "off",
"quote-props": ["error", "as-needed"],
"quotes": ["error"],
"require-atomic-updates": "off",
"semi": ["error"],
"sort-imports": ["warn", {
"ignoreDeclarationSort": true
}],
"sort-keys": "off",
"sort-vars": "off",
"space-before-function-paren": ["error", {
"anonymous": "always",
"asyncArrow": "always",
"named": "never"
}],
"wrap-regex": "off"
},
"overrides": [
{
"files": ["**/*.ts"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint"
],
"extends": [
"plugin:@typescript-eslint/all",
"plugin:@typescript-eslint/eslint-recommended"
],
"rules": {
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/explicit-function-return-type": ["warn", {
"allowExpressions": true,
"allowTypedFunctionExpressions": true
}],
"@typescript-eslint/indent": ["error", 4],
"@typescript-eslint/member-delimiter-style": ["error", {
"multiline": {
"delimiter": "semi"
}
}],
"@typescript-eslint/member-ordering": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-extra-parens": ["error", "all"],
"@typescript-eslint/no-extraneous-class": "off",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-magic-numbers": "off",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-type-alias": ["error", {
"allowAliases": "always"
}],
"@typescript-eslint/no-underscore-dangle": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-unused-vars-experimental": "off",
"@typescript-eslint/prefer-readonly-parameter-types": "off",
"@typescript-eslint/quotes": ["error"],
"@typescript-eslint/restrict-template-expressions": ["error", {
"allowBoolean": true,
"allowNumber": true
}],
"@typescript-eslint/semi": ["error"],
"@typescript-eslint/space-before-function-paren": ["error", {
"anonymous": "always",
"asyncArrow": "always",
"named": "never"
}],
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/typedef": "off"
}
}
]
}