generated from Nyameliaaaa/ts-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
158 lines (158 loc) · 4.83 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
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
{
"env": {
"es6": true,
"node": true
},
"extends": ["eslint:recommended", "prettier/prettier", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "prettier", "tsdoc"],
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-unused-vars": "off",
"array-bracket-newline": ["error", "consistent"],
"arrow-body-style": ["error", "as-needed"],
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": "error",
"block-spacing": "error",
"brace-style": "error",
"comma-dangle": "error",
"comma-spacing": "error",
"comma-style": ["error", "last"],
"curly": ["error", "all"],
"default-case-last": "error",
"dot-location": ["error", "property"],
"dot-notation": "error",
"eol-last": ["error", "always"],
"eqeqeq": ["error", "always"],
"func-call-spacing": ["error", "never"],
"keyword-spacing": "error",
"line-comment-position": [
"error",
{
"position": "above"
}
],
"lines-around-comment": "off",
"no-alert": "error",
"no-case-declarations": "off",
"no-confusing-arrow": "error",
"no-duplicate-imports": [
"error",
{
"includeExports": true
}
],
"no-else-return": [
"error",
{
"allowElseIf": false
}
],
"no-empty-function": "off",
"no-extra-label": "error",
"no-floating-decimal": "error",
"no-implicit-coercion": "error",
"no-implied-eval": "error",
"no-lone-blocks": "error",
"no-loss-of-precision": "error",
"no-multi-assign": "error",
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-multiple-empty-lines": "error",
"no-negated-condition": "error",
"no-nested-ternary": "error",
"no-new-wrappers": "error",
"no-octal-escape": "error",
"no-return-await": "error",
"no-sequences": [
"error",
{
"allowInParentheses": false
}
],
"no-shadow": ["off"],
"no-template-curly-in-string": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-unneeded-ternary": "error",
"no-unreachable-loop": "error",
"no-unsafe-optional-chaining": [
"error",
{
"disallowArithmeticOperators": true
}
],
"no-useless-backreference": "error",
"no-useless-call": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-return": "error",
"no-var": "error",
"no-whitespace-before-property": "error",
"object-curly-newline": [
"error",
{
"consistent": true
}
],
"object-shorthand": "error",
"one-var": ["error", "never"],
"operator-assignment": ["error", "always"],
"padded-blocks": ["error", "never"],
"prefer-arrow-callback": [
"error",
{
"allowUnboundThis": false
}
],
"prefer-const": "error",
"prefer-destructuring": "error",
"prefer-numeric-literals": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
},
{
"usePrettierrc": true
}
],
"require-atomic-updates": "error",
"require-unicode-regexp": "error",
"rest-spread-spacing": ["error", "never"],
"semi": "error",
"semi-spacing": "error",
"semi-style": ["error", "last"],
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"asyncArrow": "always",
"named": "never"
}
],
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
"space-unary-ops": [
"error",
{
"nonwords": false,
"words": true
}
],
"spaced-comment": "off",
"switch-colon-spacing": "error",
"template-curly-spacing": ["error", "never"],
"unicode-bom": ["error", "never"],
"yoda": "error"
}
}