eslint-config-isaacscript 3.7.0 → 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 +1 -7
- package/base-jsdoc.js +5 -1
- package/base-typescript-eslint.js +1 -1
- package/package.json +1 -1
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
|
|
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
|
|
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
|
*/
|