eslint-config-isaacscript 3.6.1 → 3.7.1

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 CHANGED
@@ -112,8 +112,7 @@ module.exports = {
112
112
  * Defined at:
113
113
  * https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/style.js
114
114
  *
115
- * - We move the selector for "for..of" loops, since they are commonly used.
116
- * - We add a selector for "empty" invocations of the "array.push()" method.
115
+ * - We remove the `ForOfStatement` selector, since they are commonly used.
117
116
  */
118
117
  "no-restricted-syntax": [
119
118
  "warn",
@@ -132,11 +131,6 @@ module.exports = {
132
131
  message:
133
132
  "`with` is disallowed in strict mode because it makes code impossible to predict and optimize.",
134
133
  },
135
- {
136
- selector:
137
- "CallExpression[callee.property.name='push'][arguments.length=0]",
138
- message: "push must always be called with at least one argument.",
139
- },
140
134
  ],
141
135
 
142
136
  /**
package/base-jsdoc.js CHANGED
@@ -65,10 +65,14 @@ module.exports = {
65
65
  "noSelf",
66
66
  "noSelfInFile",
67
67
 
68
- // Ignore tags used in ts-json-schema-generator:
68
+ // Ignore tags used in `ts-json-schema-generator`:
69
69
  // https://github.com/vega/ts-json-schema-generator
70
70
  "minimum",
71
71
  "maximum",
72
+
73
+ // Ignore tags used in `eslint-plugin-isaacscript`:
74
+ // https://github.com/IsaacScript/isaacscript/blob/main/packages/eslint-plugin-isaacscript/docs/rules/require-variadic-function-argument.md
75
+ "allowEmptyVariadic",
72
76
  ],
73
77
  },
74
78
  ],
@@ -140,7 +140,7 @@ module.exports = {
140
140
  * Defined at:
141
141
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/src/configs/strict.ts
142
142
  *
143
- * This can modify the type of boolean declarations to "boolean | undefined", which is undesired
143
+ * This can modify the type of boolean declarations to `boolean | undefined`, which is undesired
144
144
  * in some circumstances:
145
145
  * https://github.com/typescript-eslint/typescript-eslint/issues/5269
146
146
  */
package/base.js CHANGED
@@ -342,7 +342,14 @@ module.exports = {
342
342
  */
343
343
  "unicorn/prefer-node-protocol": "warn",
344
344
 
345
- // TEST
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
+ */
346
353
  // https://github.com/typescript-eslint/typescript-eslint/issues/6446
347
354
  "no-restricted-syntax": [
348
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-isaacscript",
3
- "version": "3.6.1",
3
+ "version": "3.7.1",
4
4
  "description": "A sharable ESLint config for TypeScript and IsaacScript projects.",
5
5
  "keywords": [
6
6
  "eslint",