eslint-config-isaacscript 1.0.60 → 1.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.js +44 -13
- package/package.json +2 -2
package/base.js
CHANGED
|
@@ -16,12 +16,15 @@ module.exports = {
|
|
|
16
16
|
// We extend the Airbnb rules with the "recommended" and "recommended-requiring-type-checking"
|
|
17
17
|
// rules from the "typescript-eslint" plugin, which is also recommended by Matt Turnbull,
|
|
18
18
|
// the author of "airbnb-typescript/base"
|
|
19
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/
|
|
20
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/
|
|
21
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/
|
|
19
|
+
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/src/configs/README.md#recommended
|
|
20
|
+
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/src/configs/recommended.ts
|
|
21
|
+
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/src/configs/recommended-requiring-type-checking.ts
|
|
22
22
|
"plugin:@typescript-eslint/recommended",
|
|
23
23
|
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
24
24
|
|
|
25
|
+
// This provides rules for max comment length that the "--fix" flag can fix
|
|
26
|
+
"plugin:comment-length/recommended",
|
|
27
|
+
|
|
25
28
|
// This provides a version of the "eqeqeq" rule that the "--fix" flag can fix
|
|
26
29
|
// https://github.com/Zamiell/eslint-plugin-eqeqeq-fix
|
|
27
30
|
"plugin:eqeqeq-fix/recommended",
|
|
@@ -34,6 +37,10 @@ module.exports = {
|
|
|
34
37
|
// https://github.com/gajus/eslint-plugin-jsdoc
|
|
35
38
|
"plugin:jsdoc/recommended",
|
|
36
39
|
|
|
40
|
+
// This prevents declaring arrays without a type
|
|
41
|
+
// https://github.com/Zamiell/eslint-plugin-no-array-any
|
|
42
|
+
"plugin:no-array-any/recommended",
|
|
43
|
+
|
|
37
44
|
// This prevents implicit iteration of Maps and Sets,
|
|
38
45
|
// which is helpful to prevent bugs when refactoring
|
|
39
46
|
// https://github.com/Zamiell/eslint-plugin-no-implicit-map-set-loops
|
|
@@ -72,7 +79,7 @@ module.exports = {
|
|
|
72
79
|
// (listed in alphabetical order)
|
|
73
80
|
rules: {
|
|
74
81
|
// Documentation:
|
|
75
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/
|
|
82
|
+
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/array-type.md
|
|
76
83
|
// Not defined in the parent configs
|
|
77
84
|
// Prefer the "[]string" syntax over "Array<string>"
|
|
78
85
|
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
|
|
@@ -86,7 +93,7 @@ module.exports = {
|
|
|
86
93
|
|
|
87
94
|
// Documentation:
|
|
88
95
|
// https://eslint.org/docs/rules/lines-between-class-members
|
|
89
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/
|
|
96
|
+
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/lines-between-class-members.md
|
|
90
97
|
// Defined at:
|
|
91
98
|
// https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/style.js
|
|
92
99
|
// Airbnb has "exceptAfterSingleLine" turned off by default
|
|
@@ -98,7 +105,7 @@ module.exports = {
|
|
|
98
105
|
],
|
|
99
106
|
|
|
100
107
|
// Documentation:
|
|
101
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/
|
|
108
|
+
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/naming-convention.md
|
|
102
109
|
// Defined at:
|
|
103
110
|
// https://github.com/iamturns/eslint-config-airbnb-typescript/blob/master/lib/shared.js
|
|
104
111
|
// Modify the Airbnb config to allow for a leading underscore,
|
|
@@ -129,13 +136,13 @@ module.exports = {
|
|
|
129
136
|
],
|
|
130
137
|
|
|
131
138
|
// Documentation:
|
|
132
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/
|
|
139
|
+
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.md
|
|
133
140
|
// Not defined in the parent configs
|
|
134
141
|
// This prevents useless code after refactoring variables to pure booleans
|
|
135
142
|
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "warn",
|
|
136
143
|
|
|
137
144
|
// Documentation:
|
|
138
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/
|
|
145
|
+
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unused-vars.md
|
|
139
146
|
// Defined at:
|
|
140
147
|
// https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/variables.js
|
|
141
148
|
// We want to lint unused arguments (the default is "after-used")
|
|
@@ -150,7 +157,7 @@ module.exports = {
|
|
|
150
157
|
],
|
|
151
158
|
|
|
152
159
|
// Documentation:
|
|
153
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/
|
|
160
|
+
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-use-before-define.md
|
|
154
161
|
// https://eslint.org/docs/rules/no-use-before-define
|
|
155
162
|
// Defined at:
|
|
156
163
|
// https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/variables.js
|
|
@@ -158,7 +165,7 @@ module.exports = {
|
|
|
158
165
|
"@typescript-eslint/no-use-before-define": "off",
|
|
159
166
|
|
|
160
167
|
// Documentation:
|
|
161
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/
|
|
168
|
+
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/quotes.md
|
|
162
169
|
// Defined at:
|
|
163
170
|
// https://github.com/prettier/eslint-config-prettier/blob/main/%40typescript-eslint.js
|
|
164
171
|
// In order to forbid unnecessary backticks, we must re-enable the "@typescript-eslint/quotes"
|
|
@@ -171,15 +178,15 @@ module.exports = {
|
|
|
171
178
|
],
|
|
172
179
|
|
|
173
180
|
// Documentation:
|
|
174
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/
|
|
181
|
+
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/restrict-template-expressions.md
|
|
175
182
|
// Defined at:
|
|
176
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/
|
|
183
|
+
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/src/configs/recommended-requiring-type-checking.ts
|
|
177
184
|
// This rule disallows booleans and nulls in template expressions
|
|
178
185
|
// However, a common use-case of template strings is to coerce everything to a string
|
|
179
186
|
"@typescript-eslint/restrict-template-expressions": "off",
|
|
180
187
|
|
|
181
188
|
// Documentation:
|
|
182
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/
|
|
189
|
+
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/restrict-template-expressions.md
|
|
183
190
|
// Not defined in the parent configs
|
|
184
191
|
// This rule prevents bugs when refactoring a boolean to a number
|
|
185
192
|
"@typescript-eslint/strict-boolean-expressions": [
|
|
@@ -195,6 +202,30 @@ module.exports = {
|
|
|
195
202
|
},
|
|
196
203
|
],
|
|
197
204
|
|
|
205
|
+
// Documentation:
|
|
206
|
+
// https://github.com/lasselupe33/eslint-plugin-comment-length
|
|
207
|
+
// Defined at:
|
|
208
|
+
// https://github.com/lasselupe33/eslint-plugin-comment-length/blob/master/rules/src/index.ts
|
|
209
|
+
// Auto-fix long comments. We specify 100 to match the ruler and the Airbnb style guide.
|
|
210
|
+
"comment-length/limit-multi-line-comments": [
|
|
211
|
+
"warn",
|
|
212
|
+
{
|
|
213
|
+
maxLength: 100,
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
|
|
217
|
+
// Documentation:
|
|
218
|
+
// https://github.com/lasselupe33/eslint-plugin-comment-length
|
|
219
|
+
// Defined at:
|
|
220
|
+
// https://github.com/lasselupe33/eslint-plugin-comment-length/blob/master/rules/src/index.ts
|
|
221
|
+
// Auto-fix long comments. We specify 100 to match the ruler and the Airbnb style guide.
|
|
222
|
+
"comment-length/limit-single-line-comments": [
|
|
223
|
+
"warn",
|
|
224
|
+
{
|
|
225
|
+
maxLength: 100,
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
|
|
198
229
|
// Documentation:
|
|
199
230
|
// https://github.com/mysticatea/eslint-plugin-eslint-comments/blob/master/docs/rules/disable-enable-pair.md
|
|
200
231
|
// Defined at:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-isaacscript",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.63",
|
|
4
4
|
"description": "An ESLint config for IsaacScript projects.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
"license": "GPL-3.0",
|
|
10
10
|
"author": "Zamiell",
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"prettier": "^2.6.
|
|
12
|
+
"prettier": "^2.6.2"
|
|
13
13
|
}
|
|
14
14
|
}
|