eslint-config-isaacscript 1.2.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/README.md +1 -1
- package/base.js +24 -1
- package/jsdoc.js +8 -4
- package/mod.js +12 -2
- package/package.json +2 -2
- package/CHANGELOG.md +0 -5
package/README.md
CHANGED
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
This is a sharable configuration for ESLint that is intended to be used in TypeScript and IsaacScript projects.
|
|
6
6
|
|
|
7
|
-
This package is consumed by the [`isaacscript-lint`](https://github.com/IsaacScript/isaacscript-lint) meta-linting package.
|
|
7
|
+
This package is consumed by the [`isaacscript-lint`](https://github.com/IsaacScript/isaacscript/tree/main/packages/isaacscript-lint) meta-linting package.
|
|
8
8
|
|
|
9
9
|
Please see the [IsaacScript webpage](https://isaacscript.github.io/) for more information.
|
package/base.js
CHANGED
|
@@ -32,7 +32,7 @@ module.exports = {
|
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* This provides extra miscellaneous rules to keep code safe:
|
|
35
|
-
* https://github.com/IsaacScript/eslint-plugin-isaacscript
|
|
35
|
+
* https://github.com/IsaacScript/isaacscript/tree/main/packages/eslint-plugin-isaacscript
|
|
36
36
|
*/
|
|
37
37
|
"plugin:isaacscript/recommended",
|
|
38
38
|
|
|
@@ -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/jsdoc.js
CHANGED
|
@@ -18,7 +18,10 @@ module.exports = {
|
|
|
18
18
|
rules: {
|
|
19
19
|
// - jsdoc/check-access - Not needed in TypeScript.
|
|
20
20
|
// - jsdoc/check-alignment - Overlaps with `isaacscript/limit-jsdoc-comments`.
|
|
21
|
-
|
|
21
|
+
|
|
22
|
+
// - jsdoc/check-examples - Does not work with ESLint 8; see:
|
|
23
|
+
// https://github.com/eslint/eslint/issues/14745
|
|
24
|
+
|
|
22
25
|
// - jsdoc/check-indentation - Overlaps with `isaacscript/limit-jsdoc-comments`.
|
|
23
26
|
// - jsdoc/check-line-alignment - This is not a common formatting scheme in the wild. It's also
|
|
24
27
|
// not recommended by the plugin.
|
|
@@ -44,16 +47,17 @@ module.exports = {
|
|
|
44
47
|
"warn",
|
|
45
48
|
{
|
|
46
49
|
definedTags: [
|
|
47
|
-
//
|
|
50
|
+
// Ignore tags used by the TypeScript compiler:
|
|
48
51
|
// https://www.typescriptlang.org/tsconfig#stripInternal
|
|
49
52
|
"internal", // Used by TypeScript
|
|
50
53
|
|
|
51
|
-
//
|
|
54
|
+
// Ignore tags used in TypeDoc:
|
|
52
55
|
// https://typedoc.org/guides/doccomments/
|
|
53
56
|
"category",
|
|
54
57
|
"hidden",
|
|
58
|
+
"notExported",
|
|
55
59
|
|
|
56
|
-
//
|
|
60
|
+
// Ignore tags used in TypeScriptToLua:
|
|
57
61
|
// https://typescripttolua.github.io/docs/advanced/compiler-annotations
|
|
58
62
|
"noResolution",
|
|
59
63
|
"noSelf",
|
package/mod.js
CHANGED
|
@@ -4,7 +4,7 @@ module.exports = {
|
|
|
4
4
|
extends: [
|
|
5
5
|
/**
|
|
6
6
|
* The mod config extends the base configuration:
|
|
7
|
-
* https://github.com/IsaacScript/eslint-config-isaacscript/
|
|
7
|
+
* https://github.com/IsaacScript/isaacscript/blob/main/packages/eslint-config-isaacscript/base.js
|
|
8
8
|
*/
|
|
9
9
|
"./base",
|
|
10
10
|
],
|
|
@@ -67,7 +67,7 @@ module.exports = {
|
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* Documentation:
|
|
70
|
-
* https://github.com/IsaacScript/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
|
*
|
|
@@ -75,6 +75,16 @@ module.exports = {
|
|
|
75
75
|
*/
|
|
76
76
|
"isaacscript/enum-member-number-separation": "warn",
|
|
77
77
|
|
|
78
|
+
/**
|
|
79
|
+
* Documentation:
|
|
80
|
+
* https://github.com/IsaacScript/isaacscript/blob/main/packages/eslint-plugin-isaacscript/docs/rules/no-invalid-default-map.md
|
|
81
|
+
*
|
|
82
|
+
* Not defined in the parent configs.
|
|
83
|
+
*
|
|
84
|
+
* Prevents misuse of the custom `DefaultMap` class in the standard library.
|
|
85
|
+
*/
|
|
86
|
+
"isaacscript/no-invalid-default-map": "warn",
|
|
87
|
+
|
|
78
88
|
/**
|
|
79
89
|
* Documentation:
|
|
80
90
|
* https://github.com/eslint/eslint/blob/master/docs/rules/no-bitwise.md
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-isaacscript",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "A sharable ESLint config for TypeScript and IsaacScript projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"author": "Zamiell",
|
|
24
24
|
"type": "commonjs"
|
|
25
|
-
}
|
|
25
|
+
}
|
package/CHANGELOG.md
DELETED