eslint 9.29.0 → 9.30.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 (87) hide show
  1. package/lib/config/config-loader.js +2 -29
  2. package/lib/config/flat-config-array.js +1 -1
  3. package/lib/eslint/eslint.js +1 -1
  4. package/lib/languages/js/source-code/source-code.js +7 -0
  5. package/lib/rules/array-bracket-newline.js +3 -3
  6. package/lib/rules/array-bracket-spacing.js +3 -3
  7. package/lib/rules/array-element-newline.js +3 -3
  8. package/lib/rules/arrow-parens.js +3 -3
  9. package/lib/rules/arrow-spacing.js +3 -3
  10. package/lib/rules/block-spacing.js +3 -3
  11. package/lib/rules/brace-style.js +3 -3
  12. package/lib/rules/comma-dangle.js +3 -3
  13. package/lib/rules/comma-spacing.js +3 -3
  14. package/lib/rules/comma-style.js +3 -3
  15. package/lib/rules/computed-property-spacing.js +3 -3
  16. package/lib/rules/dot-location.js +3 -3
  17. package/lib/rules/eol-last.js +3 -3
  18. package/lib/rules/func-call-spacing.js +3 -3
  19. package/lib/rules/function-call-argument-newline.js +3 -3
  20. package/lib/rules/function-paren-newline.js +3 -3
  21. package/lib/rules/generator-star-spacing.js +3 -3
  22. package/lib/rules/implicit-arrow-linebreak.js +3 -3
  23. package/lib/rules/indent-legacy.js +3 -3
  24. package/lib/rules/indent.js +3 -3
  25. package/lib/rules/jsx-quotes.js +3 -3
  26. package/lib/rules/key-spacing.js +3 -3
  27. package/lib/rules/keyword-spacing.js +3 -3
  28. package/lib/rules/line-comment-position.js +3 -3
  29. package/lib/rules/linebreak-style.js +3 -3
  30. package/lib/rules/lines-around-comment.js +3 -3
  31. package/lib/rules/lines-around-directive.js +3 -3
  32. package/lib/rules/lines-between-class-members.js +3 -3
  33. package/lib/rules/max-len.js +3 -3
  34. package/lib/rules/max-statements-per-line.js +3 -3
  35. package/lib/rules/multiline-comment-style.js +3 -3
  36. package/lib/rules/multiline-ternary.js +3 -3
  37. package/lib/rules/new-parens.js +3 -3
  38. package/lib/rules/newline-after-var.js +3 -3
  39. package/lib/rules/newline-before-return.js +3 -3
  40. package/lib/rules/newline-per-chained-call.js +3 -3
  41. package/lib/rules/no-confusing-arrow.js +3 -3
  42. package/lib/rules/no-duplicate-imports.js +65 -7
  43. package/lib/rules/no-extra-parens.js +3 -3
  44. package/lib/rules/no-extra-semi.js +3 -3
  45. package/lib/rules/no-floating-decimal.js +3 -3
  46. package/lib/rules/no-mixed-operators.js +3 -3
  47. package/lib/rules/no-mixed-spaces-and-tabs.js +3 -3
  48. package/lib/rules/no-multi-spaces.js +3 -3
  49. package/lib/rules/no-multiple-empty-lines.js +3 -3
  50. package/lib/rules/no-restricted-properties.js +11 -2
  51. package/lib/rules/no-spaced-func.js +3 -3
  52. package/lib/rules/no-tabs.js +3 -3
  53. package/lib/rules/no-trailing-spaces.js +3 -3
  54. package/lib/rules/no-unused-vars.js +1 -1
  55. package/lib/rules/no-whitespace-before-property.js +3 -3
  56. package/lib/rules/nonblock-statement-body-position.js +3 -3
  57. package/lib/rules/object-curly-newline.js +3 -3
  58. package/lib/rules/object-curly-spacing.js +3 -3
  59. package/lib/rules/object-property-newline.js +3 -3
  60. package/lib/rules/one-var-declaration-per-line.js +3 -3
  61. package/lib/rules/operator-linebreak.js +3 -3
  62. package/lib/rules/padded-blocks.js +3 -3
  63. package/lib/rules/padding-line-between-statements.js +3 -3
  64. package/lib/rules/quote-props.js +3 -3
  65. package/lib/rules/quotes.js +3 -3
  66. package/lib/rules/rest-spread-spacing.js +3 -3
  67. package/lib/rules/semi-spacing.js +3 -3
  68. package/lib/rules/semi-style.js +3 -3
  69. package/lib/rules/semi.js +3 -3
  70. package/lib/rules/space-before-blocks.js +3 -3
  71. package/lib/rules/space-before-function-paren.js +3 -3
  72. package/lib/rules/space-in-parens.js +3 -3
  73. package/lib/rules/space-infix-ops.js +3 -3
  74. package/lib/rules/space-unary-ops.js +3 -3
  75. package/lib/rules/spaced-comment.js +3 -3
  76. package/lib/rules/switch-colon-spacing.js +3 -3
  77. package/lib/rules/template-curly-spacing.js +3 -3
  78. package/lib/rules/template-tag-spacing.js +3 -3
  79. package/lib/rules/utils/ast-utils.js +45 -0
  80. package/lib/rules/wrap-iife.js +3 -3
  81. package/lib/rules/wrap-regex.js +3 -3
  82. package/lib/rules/yield-star-spacing.js +3 -3
  83. package/lib/shared/flags.js +9 -1
  84. package/lib/shared/runtime-info.js +1 -1
  85. package/lib/types/index.d.ts +7 -0
  86. package/lib/types/rules.d.ts +78 -74
  87. package/package.json +4 -4
@@ -642,40 +642,13 @@ class ConfigLoader {
642
642
 
643
643
  // append command line ignore patterns
644
644
  if (ignorePatterns && ignorePatterns.length > 0) {
645
- let relativeIgnorePatterns;
646
-
647
- /*
648
- * If the config file basePath is different than the cwd, then
649
- * the ignore patterns won't work correctly. Here, we adjust the
650
- * ignore pattern to include the correct relative path. Patterns
651
- * passed as `ignorePatterns` are relative to the cwd, whereas
652
- * the config file basePath can be an ancestor of the cwd.
653
- */
654
- if (basePath === cwd) {
655
- relativeIgnorePatterns = ignorePatterns;
656
- } else {
657
- // relative path must only have Unix-style separators
658
- const relativeIgnorePath = path
659
- .relative(basePath, cwd)
660
- .replace(/\\/gu, "/");
661
-
662
- relativeIgnorePatterns = ignorePatterns.map(pattern => {
663
- const negated = pattern.startsWith("!");
664
- const basePattern = negated ? pattern.slice(1) : pattern;
665
-
666
- return (
667
- (negated ? "!" : "") +
668
- path.posix.join(relativeIgnorePath, basePattern)
669
- );
670
- });
671
- }
672
-
673
645
  /*
674
646
  * Ignore patterns are added to the end of the config array
675
647
  * so they can override default ignores.
676
648
  */
677
649
  configs.push({
678
- ignores: relativeIgnorePatterns,
650
+ basePath: cwd,
651
+ ignores: ignorePatterns,
679
652
  });
680
653
  }
681
654
 
@@ -21,7 +21,7 @@ const { Config } = require("./config");
21
21
  /**
22
22
  * Fields that are considered metadata and not part of the config object.
23
23
  */
24
- const META_FIELDS = new Set(["name"]);
24
+ const META_FIELDS = new Set(["name", "basePath"]);
25
25
 
26
26
  /**
27
27
  * Wraps a config error with details about where the error occurred.
@@ -463,7 +463,7 @@ class ESLint {
463
463
  warningService,
464
464
  };
465
465
 
466
- this.#configLoader = linter.hasFlag("unstable_config_lookup_from_file")
466
+ this.#configLoader = linter.hasFlag("v10_config_lookup_from_file")
467
467
  ? new ConfigLoader(configLoaderOptions)
468
468
  : new LegacyConfigLoader(configLoaderOptions);
469
469
 
@@ -795,6 +795,7 @@ class SourceCode extends TokenStore {
795
795
  */
796
796
  getIndexFromLoc(loc) {
797
797
  if (
798
+ loc === null ||
798
799
  typeof loc !== "object" ||
799
800
  typeof loc.line !== "number" ||
800
801
  typeof loc.column !== "number"
@@ -816,6 +817,12 @@ class SourceCode extends TokenStore {
816
817
  );
817
818
  }
818
819
 
820
+ if (loc.column < 0) {
821
+ throw new RangeError(
822
+ `Invalid column number (column ${loc.column} requested).`,
823
+ );
824
+ }
825
+
819
826
  const lineStartIndex = this.lineStartIndices[loc.line - 1];
820
827
  const lineEndIndex =
821
828
  loc.line === this.lineStartIndices.length
@@ -26,12 +26,12 @@ module.exports = {
26
26
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
27
27
  url: "https://eslint.style/guide/migration",
28
28
  plugin: {
29
- name: "@stylistic/eslint-plugin-js",
30
- url: "https://eslint.style/packages/js",
29
+ name: "@stylistic/eslint-plugin",
30
+ url: "https://eslint.style",
31
31
  },
32
32
  rule: {
33
33
  name: "array-bracket-newline",
34
- url: "https://eslint.style/rules/js/array-bracket-newline",
34
+ url: "https://eslint.style/rules/array-bracket-newline",
35
35
  },
36
36
  },
37
37
  ],
@@ -25,12 +25,12 @@ module.exports = {
25
25
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
26
26
  url: "https://eslint.style/guide/migration",
27
27
  plugin: {
28
- name: "@stylistic/eslint-plugin-js",
29
- url: "https://eslint.style/packages/js",
28
+ name: "@stylistic/eslint-plugin",
29
+ url: "https://eslint.style",
30
30
  },
31
31
  rule: {
32
32
  name: "array-bracket-spacing",
33
- url: "https://eslint.style/rules/js/array-bracket-spacing",
33
+ url: "https://eslint.style/rules/array-bracket-spacing",
34
34
  },
35
35
  },
36
36
  ],
@@ -26,12 +26,12 @@ module.exports = {
26
26
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
27
27
  url: "https://eslint.style/guide/migration",
28
28
  plugin: {
29
- name: "@stylistic/eslint-plugin-js",
30
- url: "https://eslint.style/packages/js",
29
+ name: "@stylistic/eslint-plugin",
30
+ url: "https://eslint.style",
31
31
  },
32
32
  rule: {
33
33
  name: "array-element-newline",
34
- url: "https://eslint.style/rules/js/array-element-newline",
34
+ url: "https://eslint.style/rules/array-element-newline",
35
35
  },
36
36
  },
37
37
  ],
@@ -42,12 +42,12 @@ module.exports = {
42
42
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
43
43
  url: "https://eslint.style/guide/migration",
44
44
  plugin: {
45
- name: "@stylistic/eslint-plugin-js",
46
- url: "https://eslint.style/packages/js",
45
+ name: "@stylistic/eslint-plugin",
46
+ url: "https://eslint.style",
47
47
  },
48
48
  rule: {
49
49
  name: "arrow-parens",
50
- url: "https://eslint.style/rules/js/arrow-parens",
50
+ url: "https://eslint.style/rules/arrow-parens",
51
51
  },
52
52
  },
53
53
  ],
@@ -29,12 +29,12 @@ module.exports = {
29
29
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
30
30
  url: "https://eslint.style/guide/migration",
31
31
  plugin: {
32
- name: "@stylistic/eslint-plugin-js",
33
- url: "https://eslint.style/packages/js",
32
+ name: "@stylistic/eslint-plugin",
33
+ url: "https://eslint.style",
34
34
  },
35
35
  rule: {
36
36
  name: "arrow-spacing",
37
- url: "https://eslint.style/rules/js/arrow-spacing",
37
+ url: "https://eslint.style/rules/arrow-spacing",
38
38
  },
39
39
  },
40
40
  ],
@@ -26,12 +26,12 @@ module.exports = {
26
26
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
27
27
  url: "https://eslint.style/guide/migration",
28
28
  plugin: {
29
- name: "@stylistic/eslint-plugin-js",
30
- url: "https://eslint.style/packages/js",
29
+ name: "@stylistic/eslint-plugin",
30
+ url: "https://eslint.style",
31
31
  },
32
32
  rule: {
33
33
  name: "block-spacing",
34
- url: "https://eslint.style/rules/js/block-spacing",
34
+ url: "https://eslint.style/rules/block-spacing",
35
35
  },
36
36
  },
37
37
  ],
@@ -26,12 +26,12 @@ module.exports = {
26
26
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
27
27
  url: "https://eslint.style/guide/migration",
28
28
  plugin: {
29
- name: "@stylistic/eslint-plugin-js",
30
- url: "https://eslint.style/packages/js",
29
+ name: "@stylistic/eslint-plugin",
30
+ url: "https://eslint.style",
31
31
  },
32
32
  rule: {
33
33
  name: "brace-style",
34
- url: "https://eslint.style/rules/js/brace-style",
34
+ url: "https://eslint.style/rules/brace-style",
35
35
  },
36
36
  },
37
37
  ],
@@ -85,12 +85,12 @@ module.exports = {
85
85
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
86
86
  url: "https://eslint.style/guide/migration",
87
87
  plugin: {
88
- name: "@stylistic/eslint-plugin-js",
89
- url: "https://eslint.style/packages/js",
88
+ name: "@stylistic/eslint-plugin",
89
+ url: "https://eslint.style",
90
90
  },
91
91
  rule: {
92
92
  name: "comma-dangle",
93
- url: "https://eslint.style/rules/js/comma-dangle",
93
+ url: "https://eslint.style/rules/comma-dangle",
94
94
  },
95
95
  },
96
96
  ],
@@ -25,12 +25,12 @@ module.exports = {
25
25
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
26
26
  url: "https://eslint.style/guide/migration",
27
27
  plugin: {
28
- name: "@stylistic/eslint-plugin-js",
29
- url: "https://eslint.style/packages/js",
28
+ name: "@stylistic/eslint-plugin",
29
+ url: "https://eslint.style",
30
30
  },
31
31
  rule: {
32
32
  name: "comma-spacing",
33
- url: "https://eslint.style/rules/js/comma-spacing",
33
+ url: "https://eslint.style/rules/comma-spacing",
34
34
  },
35
35
  },
36
36
  ],
@@ -26,12 +26,12 @@ module.exports = {
26
26
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
27
27
  url: "https://eslint.style/guide/migration",
28
28
  plugin: {
29
- name: "@stylistic/eslint-plugin-js",
30
- url: "https://eslint.style/packages/js",
29
+ name: "@stylistic/eslint-plugin",
30
+ url: "https://eslint.style",
31
31
  },
32
32
  rule: {
33
33
  name: "comma-style",
34
- url: "https://eslint.style/rules/js/comma-style",
34
+ url: "https://eslint.style/rules/comma-style",
35
35
  },
36
36
  },
37
37
  ],
@@ -25,12 +25,12 @@ module.exports = {
25
25
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
26
26
  url: "https://eslint.style/guide/migration",
27
27
  plugin: {
28
- name: "@stylistic/eslint-plugin-js",
29
- url: "https://eslint.style/packages/js",
28
+ name: "@stylistic/eslint-plugin",
29
+ url: "https://eslint.style",
30
30
  },
31
31
  rule: {
32
32
  name: "computed-property-spacing",
33
- url: "https://eslint.style/rules/js/computed-property-spacing",
33
+ url: "https://eslint.style/rules/computed-property-spacing",
34
34
  },
35
35
  },
36
36
  ],
@@ -26,12 +26,12 @@ module.exports = {
26
26
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
27
27
  url: "https://eslint.style/guide/migration",
28
28
  plugin: {
29
- name: "@stylistic/eslint-plugin-js",
30
- url: "https://eslint.style/packages/js",
29
+ name: "@stylistic/eslint-plugin",
30
+ url: "https://eslint.style",
31
31
  },
32
32
  rule: {
33
33
  name: "dot-location",
34
- url: "https://eslint.style/rules/js/dot-location",
34
+ url: "https://eslint.style/rules/dot-location",
35
35
  },
36
36
  },
37
37
  ],
@@ -23,12 +23,12 @@ module.exports = {
23
23
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
24
24
  url: "https://eslint.style/guide/migration",
25
25
  plugin: {
26
- name: "@stylistic/eslint-plugin-js",
27
- url: "https://eslint.style/packages/js",
26
+ name: "@stylistic/eslint-plugin",
27
+ url: "https://eslint.style",
28
28
  },
29
29
  rule: {
30
30
  name: "eol-last",
31
- url: "https://eslint.style/rules/js/eol-last",
31
+ url: "https://eslint.style/rules/eol-last",
32
32
  },
33
33
  },
34
34
  ],
@@ -30,12 +30,12 @@ module.exports = {
30
30
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
31
31
  url: "https://eslint.style/guide/migration",
32
32
  plugin: {
33
- name: "@stylistic/eslint-plugin-js",
34
- url: "https://eslint.style/packages/js",
33
+ name: "@stylistic/eslint-plugin",
34
+ url: "https://eslint.style",
35
35
  },
36
36
  rule: {
37
37
  name: "function-call-spacing",
38
- url: "https://eslint.style/rules/js/function-call-spacing",
38
+ url: "https://eslint.style/rules/function-call-spacing",
39
39
  },
40
40
  },
41
41
  ],
@@ -24,12 +24,12 @@ module.exports = {
24
24
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
25
25
  url: "https://eslint.style/guide/migration",
26
26
  plugin: {
27
- name: "@stylistic/eslint-plugin-js",
28
- url: "https://eslint.style/packages/js",
27
+ name: "@stylistic/eslint-plugin",
28
+ url: "https://eslint.style",
29
29
  },
30
30
  rule: {
31
31
  name: "function-call-argument-newline",
32
- url: "https://eslint.style/rules/js/function-call-argument-newline",
32
+ url: "https://eslint.style/rules/function-call-argument-newline",
33
33
  },
34
34
  },
35
35
  ],
@@ -29,12 +29,12 @@ module.exports = {
29
29
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
30
30
  url: "https://eslint.style/guide/migration",
31
31
  plugin: {
32
- name: "@stylistic/eslint-plugin-js",
33
- url: "https://eslint.style/packages/js",
32
+ name: "@stylistic/eslint-plugin",
33
+ url: "https://eslint.style",
34
34
  },
35
35
  rule: {
36
36
  name: "function-paren-newline",
37
- url: "https://eslint.style/rules/js/function-paren-newline",
37
+ url: "https://eslint.style/rules/function-paren-newline",
38
38
  },
39
39
  },
40
40
  ],
@@ -40,12 +40,12 @@ module.exports = {
40
40
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
41
41
  url: "https://eslint.style/guide/migration",
42
42
  plugin: {
43
- name: "@stylistic/eslint-plugin-js",
44
- url: "https://eslint.style/packages/js",
43
+ name: "@stylistic/eslint-plugin",
44
+ url: "https://eslint.style",
45
45
  },
46
46
  rule: {
47
47
  name: "generator-star-spacing",
48
- url: "https://eslint.style/rules/js/generator-star-spacing",
48
+ url: "https://eslint.style/rules/generator-star-spacing",
49
49
  },
50
50
  },
51
51
  ],
@@ -24,12 +24,12 @@ module.exports = {
24
24
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
25
25
  url: "https://eslint.style/guide/migration",
26
26
  plugin: {
27
- name: "@stylistic/eslint-plugin-js",
28
- url: "https://eslint.style/packages/js",
27
+ name: "@stylistic/eslint-plugin",
28
+ url: "https://eslint.style",
29
29
  },
30
30
  rule: {
31
31
  name: "implicit-arrow-linebreak",
32
- url: "https://eslint.style/rules/js/implicit-arrow-linebreak",
32
+ url: "https://eslint.style/rules/implicit-arrow-linebreak",
33
33
  },
34
34
  },
35
35
  ],
@@ -41,12 +41,12 @@ module.exports = {
41
41
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
42
42
  url: "https://eslint.style/guide/migration",
43
43
  plugin: {
44
- name: "@stylistic/eslint-plugin-js",
45
- url: "https://eslint.style/packages/js",
44
+ name: "@stylistic/eslint-plugin",
45
+ url: "https://eslint.style",
46
46
  },
47
47
  rule: {
48
48
  name: "indent",
49
- url: "https://eslint.style/rules/js/indent",
49
+ url: "https://eslint.style/rules/indent",
50
50
  },
51
51
  },
52
52
  ],
@@ -519,12 +519,12 @@ module.exports = {
519
519
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
520
520
  url: "https://eslint.style/guide/migration",
521
521
  plugin: {
522
- name: "@stylistic/eslint-plugin-js",
523
- url: "https://eslint.style/packages/js",
522
+ name: "@stylistic/eslint-plugin",
523
+ url: "https://eslint.style",
524
524
  },
525
525
  rule: {
526
526
  name: "indent",
527
- url: "https://eslint.style/rules/js/indent",
527
+ url: "https://eslint.style/rules/indent",
528
528
  },
529
529
  },
530
530
  ],
@@ -51,12 +51,12 @@ module.exports = {
51
51
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
52
52
  url: "https://eslint.style/guide/migration",
53
53
  plugin: {
54
- name: "@stylistic/eslint-plugin-js",
55
- url: "https://eslint.style/packages/js",
54
+ name: "@stylistic/eslint-plugin",
55
+ url: "https://eslint.style",
56
56
  },
57
57
  rule: {
58
58
  name: "jsx-quotes",
59
- url: "https://eslint.style/rules/js/jsx-quotes",
59
+ url: "https://eslint.style/rules/jsx-quotes",
60
60
  },
61
61
  },
62
62
  ],
@@ -158,12 +158,12 @@ module.exports = {
158
158
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
159
159
  url: "https://eslint.style/guide/migration",
160
160
  plugin: {
161
- name: "@stylistic/eslint-plugin-js",
162
- url: "https://eslint.style/packages/js",
161
+ name: "@stylistic/eslint-plugin",
162
+ url: "https://eslint.style",
163
163
  },
164
164
  rule: {
165
165
  name: "key-spacing",
166
- url: "https://eslint.style/rules/js/key-spacing",
166
+ url: "https://eslint.style/rules/key-spacing",
167
167
  },
168
168
  },
169
169
  ],
@@ -89,12 +89,12 @@ module.exports = {
89
89
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
90
90
  url: "https://eslint.style/guide/migration",
91
91
  plugin: {
92
- name: "@stylistic/eslint-plugin-js",
93
- url: "https://eslint.style/packages/js",
92
+ name: "@stylistic/eslint-plugin",
93
+ url: "https://eslint.style",
94
94
  },
95
95
  rule: {
96
96
  name: "keyword-spacing",
97
- url: "https://eslint.style/rules/js/keyword-spacing",
97
+ url: "https://eslint.style/rules/keyword-spacing",
98
98
  },
99
99
  },
100
100
  ],
@@ -25,12 +25,12 @@ module.exports = {
25
25
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
26
26
  url: "https://eslint.style/guide/migration",
27
27
  plugin: {
28
- name: "@stylistic/eslint-plugin-js",
29
- url: "https://eslint.style/packages/js",
28
+ name: "@stylistic/eslint-plugin",
29
+ url: "https://eslint.style",
30
30
  },
31
31
  rule: {
32
32
  name: "line-comment-position",
33
- url: "https://eslint.style/rules/js/line-comment-position",
33
+ url: "https://eslint.style/rules/line-comment-position",
34
34
  },
35
35
  },
36
36
  ],
@@ -38,12 +38,12 @@ module.exports = {
38
38
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
39
39
  url: "https://eslint.style/guide/migration",
40
40
  plugin: {
41
- name: "@stylistic/eslint-plugin-js",
42
- url: "https://eslint.style/packages/js",
41
+ name: "@stylistic/eslint-plugin",
42
+ url: "https://eslint.style",
43
43
  },
44
44
  rule: {
45
45
  name: "linebreak-style",
46
- url: "https://eslint.style/rules/js/linebreak-style",
46
+ url: "https://eslint.style/rules/linebreak-style",
47
47
  },
48
48
  },
49
49
  ],
@@ -67,12 +67,12 @@ module.exports = {
67
67
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
68
68
  url: "https://eslint.style/guide/migration",
69
69
  plugin: {
70
- name: "@stylistic/eslint-plugin-js",
71
- url: "https://eslint.style/packages/js",
70
+ name: "@stylistic/eslint-plugin",
71
+ url: "https://eslint.style",
72
72
  },
73
73
  rule: {
74
74
  name: "lines-around-comment",
75
- url: "https://eslint.style/rules/js/lines-around-comment",
75
+ url: "https://eslint.style/rules/lines-around-comment",
76
76
  },
77
77
  },
78
78
  ],
@@ -62,12 +62,12 @@ module.exports = {
62
62
  message: "The new rule moved to a plugin.",
63
63
  url: "https://eslint.org/docs/latest/rules/padding-line-between-statements#examples",
64
64
  plugin: {
65
- name: "@stylistic/eslint-plugin-js",
66
- url: "https://eslint.style/packages/js",
65
+ name: "@stylistic/eslint-plugin",
66
+ url: "https://eslint.style",
67
67
  },
68
68
  rule: {
69
69
  name: "padding-line-between-statements",
70
- url: "https://eslint.style/rules/js/padding-line-between-statements",
70
+ url: "https://eslint.style/rules/padding-line-between-statements",
71
71
  },
72
72
  },
73
73
  ],
@@ -44,12 +44,12 @@ module.exports = {
44
44
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
45
45
  url: "https://eslint.style/guide/migration",
46
46
  plugin: {
47
- name: "@stylistic/eslint-plugin-js",
48
- url: "https://eslint.style/packages/js",
47
+ name: "@stylistic/eslint-plugin",
48
+ url: "https://eslint.style",
49
49
  },
50
50
  rule: {
51
51
  name: "lines-between-class-members",
52
- url: "https://eslint.style/rules/js/lines-between-class-members",
52
+ url: "https://eslint.style/rules/lines-between-class-members",
53
53
  },
54
54
  },
55
55
  ],
@@ -78,12 +78,12 @@ module.exports = {
78
78
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
79
79
  url: "https://eslint.style/guide/migration",
80
80
  plugin: {
81
- name: "@stylistic/eslint-plugin-js",
82
- url: "https://eslint.style/packages/js",
81
+ name: "@stylistic/eslint-plugin",
82
+ url: "https://eslint.style",
83
83
  },
84
84
  rule: {
85
85
  name: "max-len",
86
- url: "https://eslint.style/rules/js/max-len",
86
+ url: "https://eslint.style/rules/max-len",
87
87
  },
88
88
  },
89
89
  ],
@@ -29,12 +29,12 @@ module.exports = {
29
29
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
30
30
  url: "https://eslint.style/guide/migration",
31
31
  plugin: {
32
- name: "@stylistic/eslint-plugin-js",
33
- url: "https://eslint.style/packages/js",
32
+ name: "@stylistic/eslint-plugin",
33
+ url: "https://eslint.style",
34
34
  },
35
35
  rule: {
36
36
  name: "max-statements-per-line",
37
- url: "https://eslint.style/rules/js/max-statements-per-line",
37
+ url: "https://eslint.style/rules/max-statements-per-line",
38
38
  },
39
39
  },
40
40
  ],
@@ -25,12 +25,12 @@ module.exports = {
25
25
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
26
26
  url: "https://eslint.style/guide/migration",
27
27
  plugin: {
28
- name: "@stylistic/eslint-plugin-js",
29
- url: "https://eslint.style/packages/js",
28
+ name: "@stylistic/eslint-plugin",
29
+ url: "https://eslint.style",
30
30
  },
31
31
  rule: {
32
32
  name: "multiline-comment-style",
33
- url: "https://eslint.style/rules/js/multiline-comment-style",
33
+ url: "https://eslint.style/rules/multiline-comment-style",
34
34
  },
35
35
  },
36
36
  ],
@@ -26,12 +26,12 @@ module.exports = {
26
26
  "ESLint Stylistic now maintains deprecated stylistic core rules.",
27
27
  url: "https://eslint.style/guide/migration",
28
28
  plugin: {
29
- name: "@stylistic/eslint-plugin-js",
30
- url: "https://eslint.style/packages/js",
29
+ name: "@stylistic/eslint-plugin",
30
+ url: "https://eslint.style",
31
31
  },
32
32
  rule: {
33
33
  name: "multiline-ternary",
34
- url: "https://eslint.style/rules/js/multiline-ternary",
34
+ url: "https://eslint.style/rules/multiline-ternary",
35
35
  },
36
36
  },
37
37
  ],