eslint-config-isaacscript 3.6.0 → 3.7.0
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-eslint.js +1 -1
- package/base.js +13 -17
- package/mod.js +10 -0
- package/package.json +1 -1
package/base-eslint.js
CHANGED
package/base.js
CHANGED
|
@@ -50,17 +50,17 @@ module.exports = {
|
|
|
50
50
|
*/
|
|
51
51
|
"plugin:n/recommended",
|
|
52
52
|
|
|
53
|
-
/** Rule modifications are split out into different files for better organization. */
|
|
54
|
-
"./base-eslint",
|
|
55
|
-
"./base-typescript-eslint",
|
|
56
|
-
"./base-jsdoc",
|
|
57
|
-
|
|
58
53
|
/**
|
|
59
54
|
* Disable any ESLint rules that conflict with Prettier:
|
|
60
55
|
* https://github.com/prettier/eslint-config-prettier
|
|
61
56
|
* (Otherwise, we will have unfixable ESLint errors.)
|
|
62
57
|
*/
|
|
63
58
|
"prettier",
|
|
59
|
+
|
|
60
|
+
/** Rule modifications are split out into different files for better organization. */
|
|
61
|
+
"./base-eslint",
|
|
62
|
+
"./base-typescript-eslint",
|
|
63
|
+
"./base-jsdoc",
|
|
64
64
|
],
|
|
65
65
|
|
|
66
66
|
plugins: [
|
|
@@ -179,17 +179,6 @@ module.exports = {
|
|
|
179
179
|
*/
|
|
180
180
|
"import/no-default-export": "warn",
|
|
181
181
|
|
|
182
|
-
/**
|
|
183
|
-
* Documentation:
|
|
184
|
-
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-deprecated.md
|
|
185
|
-
*
|
|
186
|
-
* Defined at:
|
|
187
|
-
* https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/imports.js
|
|
188
|
-
*
|
|
189
|
-
* It is a useful rule and it is turned off in the parent configs with no explanation.
|
|
190
|
-
*/
|
|
191
|
-
"import/no-deprecated": "warn",
|
|
192
|
-
|
|
193
182
|
/**
|
|
194
183
|
* Documentation:
|
|
195
184
|
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-unresolved.md
|
|
@@ -353,7 +342,14 @@ module.exports = {
|
|
|
353
342
|
*/
|
|
354
343
|
"unicorn/prefer-node-protocol": "warn",
|
|
355
344
|
|
|
356
|
-
|
|
345
|
+
/**
|
|
346
|
+
* Documentation:
|
|
347
|
+
* https://eslint.org/docs/latest/rules/no-restricted-syntax
|
|
348
|
+
*
|
|
349
|
+
* Not defined in parent configs.
|
|
350
|
+
*
|
|
351
|
+
* Prevent superfluous type annotations, which can cause bugs with widened types.
|
|
352
|
+
*/
|
|
357
353
|
// https://github.com/typescript-eslint/typescript-eslint/issues/6446
|
|
358
354
|
"no-restricted-syntax": [
|
|
359
355
|
"warn",
|
package/mod.js
CHANGED
|
@@ -142,6 +142,16 @@ module.exports = {
|
|
|
142
142
|
*/
|
|
143
143
|
"isaacscript/no-throw": "warn",
|
|
144
144
|
|
|
145
|
+
/**
|
|
146
|
+
* Documentation:
|
|
147
|
+
* https://github.com/IsaacScript/isaacscript/blob/main/packages/eslint-plugin-isaacscript/docs/rules/require-v-registration.md
|
|
148
|
+
*
|
|
149
|
+
* Not defined in the parent configs.
|
|
150
|
+
*
|
|
151
|
+
* We must explicitly enable this rule, since it should only apply to IsaacScript mods.
|
|
152
|
+
*/
|
|
153
|
+
"isaacscript/require-v-registration": "warn",
|
|
154
|
+
|
|
145
155
|
/**
|
|
146
156
|
* Documentation:
|
|
147
157
|
* https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/file-extension-in-import.md
|