eslint 9.36.0 → 9.38.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.
Files changed (106) hide show
  1. package/README.md +11 -1
  2. package/lib/cli-engine/lint-result-cache.js +47 -29
  3. package/lib/eslint/eslint-helpers.js +7 -4
  4. package/lib/eslint/eslint.js +151 -37
  5. package/lib/eslint/worker.js +1 -3
  6. package/lib/linter/esquery.js +1 -1
  7. package/lib/rules/array-bracket-newline.js +1 -1
  8. package/lib/rules/array-bracket-spacing.js +1 -1
  9. package/lib/rules/array-element-newline.js +1 -1
  10. package/lib/rules/arrow-parens.js +1 -1
  11. package/lib/rules/arrow-spacing.js +1 -1
  12. package/lib/rules/block-spacing.js +1 -1
  13. package/lib/rules/brace-style.js +1 -1
  14. package/lib/rules/callback-return.js +1 -1
  15. package/lib/rules/comma-dangle.js +1 -1
  16. package/lib/rules/comma-spacing.js +1 -1
  17. package/lib/rules/comma-style.js +1 -1
  18. package/lib/rules/complexity.js +6 -0
  19. package/lib/rules/computed-property-spacing.js +1 -1
  20. package/lib/rules/dot-location.js +1 -1
  21. package/lib/rules/eol-last.js +1 -1
  22. package/lib/rules/func-call-spacing.js +2 -2
  23. package/lib/rules/function-call-argument-newline.js +1 -1
  24. package/lib/rules/function-paren-newline.js +1 -1
  25. package/lib/rules/generator-star-spacing.js +1 -1
  26. package/lib/rules/global-require.js +1 -1
  27. package/lib/rules/handle-callback-err.js +1 -1
  28. package/lib/rules/id-blacklist.js +1 -1
  29. package/lib/rules/implicit-arrow-linebreak.js +1 -1
  30. package/lib/rules/indent-legacy.js +1 -0
  31. package/lib/rules/indent.js +1 -1
  32. package/lib/rules/jsx-quotes.js +1 -1
  33. package/lib/rules/key-spacing.js +1 -1
  34. package/lib/rules/keyword-spacing.js +1 -1
  35. package/lib/rules/line-comment-position.js +1 -1
  36. package/lib/rules/linebreak-style.js +1 -1
  37. package/lib/rules/lines-around-comment.js +1 -1
  38. package/lib/rules/lines-around-directive.js +1 -1
  39. package/lib/rules/lines-between-class-members.js +1 -1
  40. package/lib/rules/max-len.js +1 -1
  41. package/lib/rules/max-statements-per-line.js +1 -1
  42. package/lib/rules/multiline-comment-style.js +1 -1
  43. package/lib/rules/multiline-ternary.js +1 -1
  44. package/lib/rules/new-parens.js +1 -1
  45. package/lib/rules/newline-after-var.js +1 -1
  46. package/lib/rules/newline-before-return.js +1 -1
  47. package/lib/rules/newline-per-chained-call.js +1 -1
  48. package/lib/rules/no-buffer-constructor.js +1 -1
  49. package/lib/rules/no-catch-shadow.js +1 -1
  50. package/lib/rules/no-confusing-arrow.js +1 -1
  51. package/lib/rules/no-extra-parens.js +1 -1
  52. package/lib/rules/no-extra-semi.js +1 -1
  53. package/lib/rules/no-floating-decimal.js +1 -1
  54. package/lib/rules/no-loss-of-precision.js +206 -211
  55. package/lib/rules/no-mixed-operators.js +1 -1
  56. package/lib/rules/no-mixed-requires.js +1 -1
  57. package/lib/rules/no-mixed-spaces-and-tabs.js +1 -1
  58. package/lib/rules/no-multi-spaces.js +1 -1
  59. package/lib/rules/no-multiple-empty-lines.js +1 -1
  60. package/lib/rules/no-native-reassign.js +1 -1
  61. package/lib/rules/no-negated-in-lhs.js +1 -1
  62. package/lib/rules/no-new-object.js +1 -1
  63. package/lib/rules/no-new-require.js +1 -1
  64. package/lib/rules/no-new-symbol.js +1 -1
  65. package/lib/rules/no-path-concat.js +1 -1
  66. package/lib/rules/no-process-env.js +1 -1
  67. package/lib/rules/no-process-exit.js +1 -1
  68. package/lib/rules/no-restricted-imports.js +171 -4
  69. package/lib/rules/no-restricted-modules.js +1 -1
  70. package/lib/rules/no-spaced-func.js +1 -1
  71. package/lib/rules/no-sync.js +1 -1
  72. package/lib/rules/no-tabs.js +1 -1
  73. package/lib/rules/no-trailing-spaces.js +1 -1
  74. package/lib/rules/no-whitespace-before-property.js +1 -1
  75. package/lib/rules/nonblock-statement-body-position.js +1 -1
  76. package/lib/rules/object-curly-newline.js +1 -1
  77. package/lib/rules/object-curly-spacing.js +1 -1
  78. package/lib/rules/object-property-newline.js +1 -1
  79. package/lib/rules/one-var-declaration-per-line.js +1 -1
  80. package/lib/rules/operator-linebreak.js +1 -1
  81. package/lib/rules/padded-blocks.js +1 -1
  82. package/lib/rules/padding-line-between-statements.js +1 -1
  83. package/lib/rules/preserve-caught-error.js +1 -5
  84. package/lib/rules/quote-props.js +1 -1
  85. package/lib/rules/quotes.js +1 -1
  86. package/lib/rules/rest-spread-spacing.js +1 -1
  87. package/lib/rules/semi-spacing.js +1 -1
  88. package/lib/rules/semi-style.js +1 -1
  89. package/lib/rules/semi.js +1 -1
  90. package/lib/rules/space-before-blocks.js +1 -1
  91. package/lib/rules/space-before-function-paren.js +1 -1
  92. package/lib/rules/space-in-parens.js +1 -1
  93. package/lib/rules/space-infix-ops.js +1 -1
  94. package/lib/rules/space-unary-ops.js +1 -1
  95. package/lib/rules/spaced-comment.js +1 -1
  96. package/lib/rules/switch-colon-spacing.js +1 -1
  97. package/lib/rules/template-curly-spacing.js +1 -1
  98. package/lib/rules/template-tag-spacing.js +1 -1
  99. package/lib/rules/wrap-iife.js +1 -1
  100. package/lib/rules/wrap-regex.js +1 -1
  101. package/lib/rules/yield-star-spacing.js +1 -1
  102. package/lib/shared/serialization.js +1 -1
  103. package/lib/types/config-api.d.ts +6 -2
  104. package/lib/types/index.d.ts +92 -407
  105. package/lib/types/rules.d.ts +2 -0
  106. package/package.json +9 -9
@@ -5,6 +5,212 @@
5
5
 
6
6
  "use strict";
7
7
 
8
+ //------------------------------------------------------------------------------
9
+ // Helpers
10
+ //------------------------------------------------------------------------------
11
+
12
+ /** Class representing a number in scientific notation. */
13
+ class ScientificNotation {
14
+ /** @type {string} The digits of the coefficient. A decimal point is implied after the first digit. */
15
+ coefficient;
16
+
17
+ /** @type {number} The order of magnitude. */
18
+ magnitude;
19
+
20
+ constructor(coefficient, magnitude) {
21
+ this.coefficient = coefficient;
22
+ this.magnitude = magnitude;
23
+ }
24
+
25
+ /* c8 ignore start -- debug only */
26
+ toString() {
27
+ return `${this.coefficient[0]}${this.coefficient.length > 1 ? `.${this.coefficient.slice(1)}` : ""}e${this.magnitude}`;
28
+ }
29
+ /* c8 ignore stop */
30
+ }
31
+
32
+ /**
33
+ * Returns whether the node is number literal
34
+ * @param {Node} node the node literal being evaluated
35
+ * @returns {boolean} true if the node is a number literal
36
+ */
37
+ function isNumber(node) {
38
+ return typeof node.value === "number";
39
+ }
40
+
41
+ /**
42
+ * Gets the source code of the given number literal. Removes `_` numeric separators from the result.
43
+ * @param {Node} node the number `Literal` node
44
+ * @returns {string} raw source code of the literal, without numeric separators
45
+ */
46
+ function getRaw(node) {
47
+ return node.raw.replace(/_/gu, "");
48
+ }
49
+
50
+ /**
51
+ * Checks whether the number is base ten
52
+ * @param {ASTNode} node the node being evaluated
53
+ * @returns {boolean} true if the node is in base ten
54
+ */
55
+ function isBaseTen(node) {
56
+ const prefixes = ["0x", "0X", "0b", "0B", "0o", "0O"];
57
+
58
+ return (
59
+ prefixes.every(prefix => !node.raw.startsWith(prefix)) &&
60
+ !/^0[0-7]+$/u.test(node.raw)
61
+ );
62
+ }
63
+
64
+ /**
65
+ * Checks that the user-intended non-base ten number equals the actual number after is has been converted to the Number type
66
+ * @param {Node} node the node being evaluated
67
+ * @returns {boolean} true if they do not match
68
+ */
69
+ function notBaseTenLosesPrecision(node) {
70
+ const rawString = getRaw(node).toUpperCase();
71
+ let base;
72
+
73
+ if (rawString.startsWith("0B")) {
74
+ base = 2;
75
+ } else if (rawString.startsWith("0X")) {
76
+ base = 16;
77
+ } else {
78
+ base = 8;
79
+ }
80
+
81
+ return !rawString.endsWith(node.value.toString(base).toUpperCase());
82
+ }
83
+
84
+ /**
85
+ * Returns the number stripped of leading zeros
86
+ * @param {string} numberAsString the string representation of the number
87
+ * @returns {string} the stripped string
88
+ */
89
+ function removeLeadingZeros(numberAsString) {
90
+ for (let i = 0; i < numberAsString.length; i++) {
91
+ if (numberAsString[i] !== "0") {
92
+ return numberAsString.slice(i);
93
+ }
94
+ }
95
+ return numberAsString;
96
+ }
97
+
98
+ /**
99
+ * Returns the number stripped of trailing zeros
100
+ * @param {string} numberAsString the string representation of the number
101
+ * @returns {string} the stripped string
102
+ */
103
+ function removeTrailingZeros(numberAsString) {
104
+ for (let i = numberAsString.length - 1; i >= 0; i--) {
105
+ if (numberAsString[i] !== "0") {
106
+ return numberAsString.slice(0, i + 1);
107
+ }
108
+ }
109
+ return numberAsString;
110
+ }
111
+
112
+ /**
113
+ * Converts an integer to an object containing the integer's coefficient and order of magnitude
114
+ * @param {string} stringInteger the string representation of the integer being converted
115
+ * @returns {ScientificNotation} the object containing the integer's coefficient and order of magnitude
116
+ */
117
+ function normalizeInteger(stringInteger) {
118
+ const trimmedInteger = removeLeadingZeros(stringInteger);
119
+ const significantDigits = removeTrailingZeros(trimmedInteger);
120
+
121
+ return new ScientificNotation(significantDigits, trimmedInteger.length - 1);
122
+ }
123
+
124
+ /**
125
+ * Converts a float to an object containing the float's coefficient and order of magnitude
126
+ * @param {string} stringFloat the string representation of the float being converted
127
+ * @returns {ScientificNotation} the object containing the float's coefficient and order of magnitude
128
+ */
129
+ function normalizeFloat(stringFloat) {
130
+ const trimmedFloat = removeLeadingZeros(stringFloat);
131
+ const indexOfDecimalPoint = trimmedFloat.indexOf(".");
132
+
133
+ switch (indexOfDecimalPoint) {
134
+ case 0: {
135
+ const significantDigits = removeLeadingZeros(trimmedFloat.slice(1));
136
+
137
+ return new ScientificNotation(
138
+ significantDigits,
139
+ significantDigits.length - trimmedFloat.length,
140
+ );
141
+ }
142
+ case -1:
143
+ return new ScientificNotation(
144
+ trimmedFloat,
145
+ trimmedFloat.length - 1,
146
+ );
147
+ default:
148
+ return new ScientificNotation(
149
+ trimmedFloat.replace(".", ""),
150
+ indexOfDecimalPoint - 1,
151
+ );
152
+ }
153
+ }
154
+
155
+ /**
156
+ * Converts a base ten number to proper scientific notation
157
+ * @param {string} stringNumber the string representation of the base ten number to be converted
158
+ * @param {boolean} parseAsFloat if true, the coefficient will be always parsed as a float, regardless of whether a decimal point is present
159
+ * @returns {ScientificNotation} the object containing the number's coefficient and order of magnitude
160
+ */
161
+ function convertNumberToScientificNotation(stringNumber, parseAsFloat) {
162
+ const splitNumber = stringNumber.split("e");
163
+ const originalCoefficient = splitNumber[0];
164
+ const normalizedNumber =
165
+ parseAsFloat || stringNumber.includes(".")
166
+ ? normalizeFloat(originalCoefficient)
167
+ : normalizeInteger(originalCoefficient);
168
+ if (splitNumber.length > 1) {
169
+ normalizedNumber.magnitude += parseInt(splitNumber[1], 10);
170
+ }
171
+
172
+ return normalizedNumber;
173
+ }
174
+
175
+ /**
176
+ * Checks that the user-intended base ten number equals the actual number after is has been converted to the Number type
177
+ * @param {Node} node the node being evaluated
178
+ * @returns {boolean} true if they do not match
179
+ */
180
+ function baseTenLosesPrecision(node) {
181
+ const rawNumber = getRaw(node).toLowerCase();
182
+ const normalizedRawNumber = convertNumberToScientificNotation(
183
+ rawNumber,
184
+ false,
185
+ );
186
+ const requestedPrecision = normalizedRawNumber.coefficient.length;
187
+
188
+ if (requestedPrecision > 100) {
189
+ return true;
190
+ }
191
+ const storedNumber = node.value.toPrecision(requestedPrecision);
192
+ const normalizedStoredNumber = convertNumberToScientificNotation(
193
+ storedNumber,
194
+ true,
195
+ );
196
+
197
+ return (
198
+ normalizedRawNumber.magnitude !== normalizedStoredNumber.magnitude ||
199
+ normalizedRawNumber.coefficient !== normalizedStoredNumber.coefficient
200
+ );
201
+ }
202
+
203
+ /**
204
+ * Checks that the user-intended number equals the actual number after is has been converted to the Number type
205
+ * @param {Node} node the node being evaluated
206
+ * @returns {boolean} true if they do not match
207
+ */
208
+ function losesPrecision(node) {
209
+ return isBaseTen(node)
210
+ ? baseTenLosesPrecision(node)
211
+ : notBaseTenLosesPrecision(node);
212
+ }
213
+
8
214
  //------------------------------------------------------------------------------
9
215
  // Rule Definition
10
216
  //------------------------------------------------------------------------------
@@ -29,217 +235,6 @@ module.exports = {
29
235
  },
30
236
 
31
237
  create(context) {
32
- /**
33
- * Returns whether the node is number literal
34
- * @param {Node} node the node literal being evaluated
35
- * @returns {boolean} true if the node is a number literal
36
- */
37
- function isNumber(node) {
38
- return typeof node.value === "number";
39
- }
40
-
41
- /**
42
- * Gets the source code of the given number literal. Removes `_` numeric separators from the result.
43
- * @param {Node} node the number `Literal` node
44
- * @returns {string} raw source code of the literal, without numeric separators
45
- */
46
- function getRaw(node) {
47
- return node.raw.replace(/_/gu, "");
48
- }
49
-
50
- /**
51
- * Checks whether the number is base ten
52
- * @param {ASTNode} node the node being evaluated
53
- * @returns {boolean} true if the node is in base ten
54
- */
55
- function isBaseTen(node) {
56
- const prefixes = ["0x", "0X", "0b", "0B", "0o", "0O"];
57
-
58
- return (
59
- prefixes.every(prefix => !node.raw.startsWith(prefix)) &&
60
- !/^0[0-7]+$/u.test(node.raw)
61
- );
62
- }
63
-
64
- /**
65
- * Checks that the user-intended non-base ten number equals the actual number after is has been converted to the Number type
66
- * @param {Node} node the node being evaluated
67
- * @returns {boolean} true if they do not match
68
- */
69
- function notBaseTenLosesPrecision(node) {
70
- const rawString = getRaw(node).toUpperCase();
71
- let base;
72
-
73
- if (rawString.startsWith("0B")) {
74
- base = 2;
75
- } else if (rawString.startsWith("0X")) {
76
- base = 16;
77
- } else {
78
- base = 8;
79
- }
80
-
81
- return !rawString.endsWith(node.value.toString(base).toUpperCase());
82
- }
83
-
84
- /**
85
- * Adds a decimal point to the numeric string at index 1
86
- * @param {string} stringNumber the numeric string without any decimal point
87
- * @returns {string} the numeric string with a decimal point in the proper place
88
- */
89
- function addDecimalPointToNumber(stringNumber) {
90
- return `${stringNumber[0]}.${stringNumber.slice(1)}`;
91
- }
92
-
93
- /**
94
- * Returns the number stripped of leading zeros
95
- * @param {string} numberAsString the string representation of the number
96
- * @returns {string} the stripped string
97
- */
98
- function removeLeadingZeros(numberAsString) {
99
- for (let i = 0; i < numberAsString.length; i++) {
100
- if (numberAsString[i] !== "0") {
101
- return numberAsString.slice(i);
102
- }
103
- }
104
- return numberAsString;
105
- }
106
-
107
- /**
108
- * Returns the number stripped of trailing zeros
109
- * @param {string} numberAsString the string representation of the number
110
- * @returns {string} the stripped string
111
- */
112
- function removeTrailingZeros(numberAsString) {
113
- for (let i = numberAsString.length - 1; i >= 0; i--) {
114
- if (numberAsString[i] !== "0") {
115
- return numberAsString.slice(0, i + 1);
116
- }
117
- }
118
- return numberAsString;
119
- }
120
-
121
- /**
122
- * Converts an integer to an object containing the integer's coefficient and order of magnitude
123
- * @param {string} stringInteger the string representation of the integer being converted
124
- * @returns {Object} the object containing the integer's coefficient and order of magnitude
125
- */
126
- function normalizeInteger(stringInteger) {
127
- const significantDigits = removeTrailingZeros(
128
- removeLeadingZeros(stringInteger),
129
- );
130
-
131
- return {
132
- magnitude: stringInteger.startsWith("0")
133
- ? stringInteger.length - 2
134
- : stringInteger.length - 1,
135
- coefficient: addDecimalPointToNumber(significantDigits),
136
- };
137
- }
138
-
139
- /**
140
- *
141
- * Converts a float to an object containing the floats's coefficient and order of magnitude
142
- * @param {string} stringFloat the string representation of the float being converted
143
- * @returns {Object} the object containing the integer's coefficient and order of magnitude
144
- */
145
- function normalizeFloat(stringFloat) {
146
- const trimmedFloat = removeLeadingZeros(stringFloat);
147
-
148
- if (trimmedFloat.startsWith(".")) {
149
- const decimalDigits = trimmedFloat.slice(1);
150
- const significantDigits = removeLeadingZeros(decimalDigits);
151
-
152
- return {
153
- magnitude:
154
- significantDigits.length - decimalDigits.length - 1,
155
- coefficient: addDecimalPointToNumber(significantDigits),
156
- };
157
- }
158
- return {
159
- magnitude: trimmedFloat.indexOf(".") - 1,
160
- coefficient: addDecimalPointToNumber(
161
- trimmedFloat.replace(".", ""),
162
- ),
163
- };
164
- }
165
-
166
- /**
167
- * Converts a base ten number to proper scientific notation
168
- * @param {string} stringNumber the string representation of the base ten number to be converted
169
- * @returns {string} the number converted to scientific notation
170
- */
171
- function convertNumberToScientificNotation(stringNumber) {
172
- const splitNumber = stringNumber.replace("E", "e").split("e");
173
- const originalCoefficient = splitNumber[0];
174
- const normalizedNumber = stringNumber.includes(".")
175
- ? normalizeFloat(originalCoefficient)
176
- : normalizeInteger(originalCoefficient);
177
- const normalizedCoefficient = normalizedNumber.coefficient;
178
- const magnitude =
179
- splitNumber.length > 1
180
- ? parseInt(splitNumber[1], 10) + normalizedNumber.magnitude
181
- : normalizedNumber.magnitude;
182
-
183
- return `${normalizedCoefficient}e${magnitude}`;
184
- }
185
-
186
- /**
187
- * Checks that the user-intended base ten number equals the actual number after is has been converted to the Number type
188
- * @param {Node} node the node being evaluated
189
- * @returns {boolean} true if they do not match
190
- */
191
- function baseTenLosesPrecision(node) {
192
- const rawNumber = getRaw(node).toLowerCase();
193
-
194
- /*
195
- * If trailing zeros equal the exponent, this is a valid representation
196
- * like "9.00e2" where 00 = 2 (meaning 9.00 * 10^2 = 900)
197
- * https://github.com/eslint/eslint/issues/19957
198
- */
199
- if (rawNumber.includes(".") && rawNumber.includes("e")) {
200
- const parts = rawNumber.split("e");
201
- const coefficient = parts[0];
202
- const exponent = parseInt(parts[1], 10);
203
-
204
- // Count trailing zeros after decimal
205
- const decimalParts = coefficient.split(".");
206
- if (decimalParts.length === 2) {
207
- const decimalPart = decimalParts[1];
208
- const trailingZeros = decimalPart.match(/0*$/u)[0].length;
209
-
210
- if (trailingZeros === exponent) {
211
- return false;
212
- }
213
- }
214
- }
215
-
216
- const normalizedRawNumber =
217
- convertNumberToScientificNotation(rawNumber);
218
- const requestedPrecision = normalizedRawNumber
219
- .split("e")[0]
220
- .replace(".", "").length;
221
-
222
- if (requestedPrecision > 100) {
223
- return true;
224
- }
225
- const storedNumber = node.value.toPrecision(requestedPrecision);
226
- const normalizedStoredNumber =
227
- convertNumberToScientificNotation(storedNumber);
228
-
229
- return normalizedRawNumber !== normalizedStoredNumber;
230
- }
231
-
232
- /**
233
- * Checks that the user-intended number equals the actual number after is has been converted to the Number type
234
- * @param {Node} node the node being evaluated
235
- * @returns {boolean} true if they do not match
236
- */
237
- function losesPrecision(node) {
238
- return isBaseTen(node)
239
- ? baseTenLosesPrecision(node)
240
- : notBaseTenLosesPrecision(node);
241
- }
242
-
243
238
  return {
244
239
  Literal(node) {
245
240
  if (node.value && isNumber(node) && losesPrecision(node)) {
@@ -90,7 +90,7 @@ module.exports = {
90
90
  message: "Formatting rules are being moved out of ESLint core.",
91
91
  url: "https://eslint.org/blog/2023/10/deprecating-formatting-rules/",
92
92
  deprecatedSince: "8.53.0",
93
- availableUntil: "10.0.0",
93
+ availableUntil: "11.0.0",
94
94
  replacedBy: [
95
95
  {
96
96
  message:
@@ -17,7 +17,7 @@ module.exports = {
17
17
  message: "Node.js rules were moved out of ESLint core.",
18
18
  url: "https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",
19
19
  deprecatedSince: "7.0.0",
20
- availableUntil: null,
20
+ availableUntil: "11.0.0",
21
21
  replacedBy: [
22
22
  {
23
23
  message:
@@ -16,7 +16,7 @@ module.exports = {
16
16
  message: "Formatting rules are being moved out of ESLint core.",
17
17
  url: "https://eslint.org/blog/2023/10/deprecating-formatting-rules/",
18
18
  deprecatedSince: "8.53.0",
19
- availableUntil: "10.0.0",
19
+ availableUntil: "11.0.0",
20
20
  replacedBy: [
21
21
  {
22
22
  message:
@@ -19,7 +19,7 @@ module.exports = {
19
19
  message: "Formatting rules are being moved out of ESLint core.",
20
20
  url: "https://eslint.org/blog/2023/10/deprecating-formatting-rules/",
21
21
  deprecatedSince: "8.53.0",
22
- availableUntil: "10.0.0",
22
+ availableUntil: "11.0.0",
23
23
  replacedBy: [
24
24
  {
25
25
  message:
@@ -17,7 +17,7 @@ module.exports = {
17
17
  message: "Formatting rules are being moved out of ESLint core.",
18
18
  url: "https://eslint.org/blog/2023/10/deprecating-formatting-rules/",
19
19
  deprecatedSince: "8.53.0",
20
- availableUntil: "10.0.0",
20
+ availableUntil: "11.0.0",
21
21
  replacedBy: [
22
22
  {
23
23
  message:
@@ -26,7 +26,7 @@ module.exports = {
26
26
  message: "Renamed rule.",
27
27
  url: "https://eslint.org/blog/2016/08/eslint-v3.3.0-released/#deprecated-rules",
28
28
  deprecatedSince: "3.3.0",
29
- availableUntil: null,
29
+ availableUntil: "11.0.0",
30
30
  replacedBy: [
31
31
  {
32
32
  rule: {
@@ -26,7 +26,7 @@ module.exports = {
26
26
  message: "Renamed rule.",
27
27
  url: "https://eslint.org/blog/2016/08/eslint-v3.3.0-released/#deprecated-rules",
28
28
  deprecatedSince: "3.3.0",
29
- availableUntil: null,
29
+ availableUntil: "11.0.0",
30
30
  replacedBy: [
31
31
  {
32
32
  rule: {
@@ -32,7 +32,7 @@ module.exports = {
32
32
  "The new rule flags more situations where object literal syntax can be used, and it does not report a problem when the `Object` constructor is invoked with an argument.",
33
33
  url: "https://eslint.org/blog/2023/09/eslint-v8.50.0-released/",
34
34
  deprecatedSince: "8.50.0",
35
- availableUntil: null,
35
+ availableUntil: "11.0.0",
36
36
  replacedBy: [
37
37
  {
38
38
  rule: {
@@ -17,7 +17,7 @@ module.exports = {
17
17
  message: "Node.js rules were moved out of ESLint core.",
18
18
  url: "https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",
19
19
  deprecatedSince: "7.0.0",
20
- availableUntil: null,
20
+ availableUntil: "11.0.0",
21
21
  replacedBy: [
22
22
  {
23
23
  message:
@@ -25,7 +25,7 @@ module.exports = {
25
25
  message: "The rule was replaced with a more general rule.",
26
26
  url: "https://eslint.org/docs/latest/use/migrate-to-9.0.0#eslint-recommended",
27
27
  deprecatedSince: "9.0.0",
28
- availableUntil: null,
28
+ availableUntil: "11.0.0",
29
29
  replacedBy: [
30
30
  {
31
31
  rule: {
@@ -16,7 +16,7 @@ module.exports = {
16
16
  message: "Node.js rules were moved out of ESLint core.",
17
17
  url: "https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",
18
18
  deprecatedSince: "7.0.0",
19
- availableUntil: null,
19
+ availableUntil: "11.0.0",
20
20
  replacedBy: [
21
21
  {
22
22
  message:
@@ -16,7 +16,7 @@ module.exports = {
16
16
  message: "Node.js rules were moved out of ESLint core.",
17
17
  url: "https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",
18
18
  deprecatedSince: "7.0.0",
19
- availableUntil: null,
19
+ availableUntil: "11.0.0",
20
20
  replacedBy: [
21
21
  {
22
22
  message:
@@ -16,7 +16,7 @@ module.exports = {
16
16
  message: "Node.js rules were moved out of ESLint core.",
17
17
  url: "https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",
18
18
  deprecatedSince: "7.0.0",
19
- availableUntil: null,
19
+ availableUntil: "11.0.0",
20
20
  replacedBy: [
21
21
  {
22
22
  message: