eslint-config-isaacscript 1.0.62 → 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 +40 -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",
|
|
@@ -76,7 +79,7 @@ module.exports = {
|
|
|
76
79
|
// (listed in alphabetical order)
|
|
77
80
|
rules: {
|
|
78
81
|
// Documentation:
|
|
79
|
-
// 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
|
|
80
83
|
// Not defined in the parent configs
|
|
81
84
|
// Prefer the "[]string" syntax over "Array<string>"
|
|
82
85
|
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
|
|
@@ -90,7 +93,7 @@ module.exports = {
|
|
|
90
93
|
|
|
91
94
|
// Documentation:
|
|
92
95
|
// https://eslint.org/docs/rules/lines-between-class-members
|
|
93
|
-
// 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
|
|
94
97
|
// Defined at:
|
|
95
98
|
// https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/style.js
|
|
96
99
|
// Airbnb has "exceptAfterSingleLine" turned off by default
|
|
@@ -102,7 +105,7 @@ module.exports = {
|
|
|
102
105
|
],
|
|
103
106
|
|
|
104
107
|
// Documentation:
|
|
105
|
-
// 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
|
|
106
109
|
// Defined at:
|
|
107
110
|
// https://github.com/iamturns/eslint-config-airbnb-typescript/blob/master/lib/shared.js
|
|
108
111
|
// Modify the Airbnb config to allow for a leading underscore,
|
|
@@ -133,13 +136,13 @@ module.exports = {
|
|
|
133
136
|
],
|
|
134
137
|
|
|
135
138
|
// Documentation:
|
|
136
|
-
// 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
|
|
137
140
|
// Not defined in the parent configs
|
|
138
141
|
// This prevents useless code after refactoring variables to pure booleans
|
|
139
142
|
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "warn",
|
|
140
143
|
|
|
141
144
|
// Documentation:
|
|
142
|
-
// 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
|
|
143
146
|
// Defined at:
|
|
144
147
|
// https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/variables.js
|
|
145
148
|
// We want to lint unused arguments (the default is "after-used")
|
|
@@ -154,7 +157,7 @@ module.exports = {
|
|
|
154
157
|
],
|
|
155
158
|
|
|
156
159
|
// Documentation:
|
|
157
|
-
// 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
|
|
158
161
|
// https://eslint.org/docs/rules/no-use-before-define
|
|
159
162
|
// Defined at:
|
|
160
163
|
// https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/variables.js
|
|
@@ -162,7 +165,7 @@ module.exports = {
|
|
|
162
165
|
"@typescript-eslint/no-use-before-define": "off",
|
|
163
166
|
|
|
164
167
|
// Documentation:
|
|
165
|
-
// 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
|
|
166
169
|
// Defined at:
|
|
167
170
|
// https://github.com/prettier/eslint-config-prettier/blob/main/%40typescript-eslint.js
|
|
168
171
|
// In order to forbid unnecessary backticks, we must re-enable the "@typescript-eslint/quotes"
|
|
@@ -175,15 +178,15 @@ module.exports = {
|
|
|
175
178
|
],
|
|
176
179
|
|
|
177
180
|
// Documentation:
|
|
178
|
-
// 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
|
|
179
182
|
// Defined at:
|
|
180
|
-
// 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
|
|
181
184
|
// This rule disallows booleans and nulls in template expressions
|
|
182
185
|
// However, a common use-case of template strings is to coerce everything to a string
|
|
183
186
|
"@typescript-eslint/restrict-template-expressions": "off",
|
|
184
187
|
|
|
185
188
|
// Documentation:
|
|
186
|
-
// 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
|
|
187
190
|
// Not defined in the parent configs
|
|
188
191
|
// This rule prevents bugs when refactoring a boolean to a number
|
|
189
192
|
"@typescript-eslint/strict-boolean-expressions": [
|
|
@@ -199,6 +202,30 @@ module.exports = {
|
|
|
199
202
|
},
|
|
200
203
|
],
|
|
201
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
|
+
|
|
202
229
|
// Documentation:
|
|
203
230
|
// https://github.com/mysticatea/eslint-plugin-eslint-comments/blob/master/docs/rules/disable-enable-pair.md
|
|
204
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
|
}
|