eslint-config-isaacscript 4.12.0 → 4.14.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/configs/base-jsdoc.js +2 -0
- package/configs/base-typescript-eslint.js +3 -3
- package/mod.js +8 -8
- package/package.json +1 -1
package/configs/base-jsdoc.js
CHANGED
|
@@ -171,8 +171,8 @@ const SUPPORTED_RULES = {
|
|
|
171
171
|
},
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
|
-
// We disable this for renamed properties,
|
|
175
|
-
//
|
|
174
|
+
// We disable this for renamed properties, since code like the following should be valid:
|
|
175
|
+
// `const someSpecificMyEnum = MyEnum.Value1;`
|
|
176
176
|
enforceForRenamedProperties: false,
|
|
177
177
|
},
|
|
178
178
|
],
|
|
@@ -193,7 +193,7 @@ const SUPPORTED_RULES = {
|
|
|
193
193
|
|
|
194
194
|
"@typescript-eslint/prefer-readonly": "error",
|
|
195
195
|
|
|
196
|
-
/**
|
|
196
|
+
/** Superseded by the `isaacscript/prefer-readonly-parameter-types` rule. */
|
|
197
197
|
"@typescript-eslint/prefer-readonly-parameter-types": "off",
|
|
198
198
|
|
|
199
199
|
"@typescript-eslint/prefer-reduce-type-parameter": "error",
|
package/mod.js
CHANGED
|
@@ -14,6 +14,14 @@ const config = {
|
|
|
14
14
|
],
|
|
15
15
|
|
|
16
16
|
rules: {
|
|
17
|
+
/**
|
|
18
|
+
* Defined at: base-typescript-eslint.js
|
|
19
|
+
*
|
|
20
|
+
* It is conventional in IsaacScript mods to put the "v" object outside of the class, which
|
|
21
|
+
* makes it likely that some methods will not use any internal class variables.
|
|
22
|
+
*/
|
|
23
|
+
"@typescript-eslint/class-methods-use-this": "off",
|
|
24
|
+
|
|
17
25
|
/**
|
|
18
26
|
* Defined at: base-typescript-eslint.js
|
|
19
27
|
*
|
|
@@ -115,14 +123,6 @@ const config = {
|
|
|
115
123
|
*/
|
|
116
124
|
"@typescript-eslint/require-array-sort-compare": "off",
|
|
117
125
|
|
|
118
|
-
/**
|
|
119
|
-
* Defined at: base-typescript-eslint.js
|
|
120
|
-
*
|
|
121
|
-
* It is conventional in IsaacScript mods to put the "v" object outside of the class, which
|
|
122
|
-
* makes it likely that some methods will not use any internal class variables.
|
|
123
|
-
*/
|
|
124
|
-
"@typescript-eslint/class-methods-use-this": "off",
|
|
125
|
-
|
|
126
126
|
/**
|
|
127
127
|
* Defined in "isaacscript/recommended".
|
|
128
128
|
*
|