eslint-config-isaacscript 3.1.0 → 3.1.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.
Files changed (3) hide show
  1. package/jsdoc.js +6 -2
  2. package/mod.js +13 -1
  3. package/package.json +1 -1
package/jsdoc.js CHANGED
@@ -180,11 +180,15 @@ module.exports = {
180
180
  "jsdoc/require-param": [
181
181
  "warn",
182
182
  {
183
- contexts: ["any"],
183
+ contexts: [
184
+ {
185
+ context: "FunctionDeclaration",
186
+ comment: 'JsdocBlock > JsdocTag[tag="param"]',
187
+ },
188
+ ],
184
189
  },
185
190
  ],
186
191
  */
187
-
188
192
  // - jsdoc/require-property - Probably not needed in TypeScript.
189
193
 
190
194
  /**
package/mod.js CHANGED
@@ -3,8 +3,9 @@
3
3
  module.exports = {
4
4
  extends: [
5
5
  /**
6
- * The mod config extends the base configuration:
6
+ * The IsaacScript mod config extends the base configuration:
7
7
  * https://github.com/IsaacScript/isaacscript/blob/main/packages/eslint-config-isaacscript/base.js
8
+ * (Normal TypeScript projects would just use the base configuration directly.)
8
9
  */
9
10
  "./base",
10
11
  ],
@@ -99,6 +100,17 @@ module.exports = {
99
100
  */
100
101
  "@typescript-eslint/no-loop-func": "off",
101
102
 
103
+ /**
104
+ * Documentation:
105
+ * https://typescript-eslint.io/rules/prefer-literal-enum-member
106
+ *
107
+ * Defined at:
108
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/src/configs/strict.ts
109
+ *
110
+ * It is common to initialize enums with the `Isaac.GetEntityVariantByName` method.
111
+ */
112
+ "@typescript-eslint/prefer-literal-enum-member": "off",
113
+
102
114
  /**
103
115
  * Documentation:
104
116
  * https://github.com/IsaacScript/isaacscript/blob/main/packages/eslint-plugin-isaacscript/docs/rules/enum-member-number-separation.md
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-isaacscript",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "A sharable ESLint config for TypeScript and IsaacScript projects.",
5
5
  "keywords": [
6
6
  "eslint",