eslint-config-isaacscript 1.3.2 → 2.0.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.js +23 -0
- package/mod.js +2 -2
- package/package.json +1 -1
package/base.js
CHANGED
|
@@ -243,6 +243,18 @@ module.exports = {
|
|
|
243
243
|
},
|
|
244
244
|
],
|
|
245
245
|
|
|
246
|
+
/**
|
|
247
|
+
* Documentation:
|
|
248
|
+
* https://eslint.org/docs/latest/rules/curly
|
|
249
|
+
*
|
|
250
|
+
* Defined at: ?
|
|
251
|
+
*
|
|
252
|
+
* Always requiring curly braces can partially ward against Apple-style if statement bugs:
|
|
253
|
+
* https://www.imperialviolet.org/2014/02/22/applebug.html
|
|
254
|
+
* ?
|
|
255
|
+
*/
|
|
256
|
+
curly: ["warn", "all"],
|
|
257
|
+
|
|
246
258
|
/**
|
|
247
259
|
* Documentation:
|
|
248
260
|
* https://github.com/mysticatea/eslint-plugin-eslint-comments/blob/master/docs/rules/disable-enable-pair.md
|
|
@@ -305,6 +317,17 @@ module.exports = {
|
|
|
305
317
|
*/
|
|
306
318
|
"no-console": "off",
|
|
307
319
|
|
|
320
|
+
/**
|
|
321
|
+
* Documentation:
|
|
322
|
+
* https://eslint.org/docs/latest/rules/no-constant-binary-expression
|
|
323
|
+
*
|
|
324
|
+
* Not defined in parent configs.
|
|
325
|
+
*
|
|
326
|
+
* This rule was released in 2022 and is known to catch many subtle bugs:
|
|
327
|
+
* https://github.com/eslint/eslint.org/pull/240/files
|
|
328
|
+
*/
|
|
329
|
+
"no-constant-binary-expression": "warn",
|
|
330
|
+
|
|
308
331
|
/**
|
|
309
332
|
* Documentation:
|
|
310
333
|
* https://eslint.org/docs/rules/no-continue
|
package/mod.js
CHANGED
|
@@ -67,7 +67,7 @@ module.exports = {
|
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* Documentation:
|
|
70
|
-
* https://github.com/IsaacScript/isaacscript/blob/main/packages/eslint-plugin-isaacscript/
|
|
70
|
+
* https://github.com/IsaacScript/isaacscript/blob/main/packages/eslint-plugin-isaacscript/docs/rules/enum-member-number-separation.md
|
|
71
71
|
*
|
|
72
72
|
* Not defined in the parent configs.
|
|
73
73
|
*
|
|
@@ -77,7 +77,7 @@ module.exports = {
|
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
79
|
* Documentation:
|
|
80
|
-
* https://github.com/IsaacScript/isaacscript/blob/main/packages/eslint-plugin-isaacscript/
|
|
80
|
+
* https://github.com/IsaacScript/isaacscript/blob/main/packages/eslint-plugin-isaacscript/docs/rules/no-invalid-default-map.md
|
|
81
81
|
*
|
|
82
82
|
* Not defined in the parent configs.
|
|
83
83
|
*
|