eslint 9.2.0 → 9.4.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.
@@ -8,7 +8,7 @@
8
8
  // Requirements
9
9
  //------------------------------------------------------------------------------
10
10
 
11
- const assert = require("assert");
11
+ const assert = require("node:assert");
12
12
  const { isCommentToken } = require("@eslint-community/eslint-utils");
13
13
  const cursors = require("./cursors");
14
14
  const ForwardTokenCursor = require("./forward-token-cursor");
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ module.exports = function() {
4
+ return `
5
+ ESLint couldn't find an eslint.config.(js|mjs|cjs) file.
6
+
7
+ From ESLint v9.0.0, the default configuration file is now eslint.config.js.
8
+ If you are using a .eslintrc.* file, please follow the migration guide
9
+ to update your configuration file to the new format:
10
+
11
+ https://eslint.org/docs/latest/use/configure/migration-guide
12
+
13
+ If you still have problems after following the migration guide, please stop by
14
+ https://eslint.org/chat/help to chat with the team.
15
+ `.trimStart();
16
+ };
@@ -11,6 +11,9 @@ Flat config uses "languageOptions.globals" to define global variables for your f
11
11
 
12
12
  Please see the following page for information on how to convert your config object into the correct format:
13
13
  https://eslint.org/docs/latest/use/configure/migration-guide#configuring-language-options
14
+
15
+ If you're not using "env" directly (it may be coming from a plugin), please see the following:
16
+ https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config
14
17
  `,
15
18
 
16
19
  extends: `
@@ -18,8 +21,11 @@ A config object is using the "extends" key, which is not supported in flat confi
18
21
 
19
22
  Instead of "extends", you can include config objects that you'd like to extend from directly in the flat config array.
20
23
 
21
- Please see the following page for more information:
24
+ If you're using "extends" in your config file, please see the following:
22
25
  https://eslint.org/docs/latest/use/configure/migration-guide#predefined-and-shareable-configs
26
+
27
+ If you're not using "extends" directly (it may be coming from a plugin), please see the following:
28
+ https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config
23
29
  `,
24
30
 
25
31
  globals: `
@@ -29,6 +35,9 @@ Flat config uses "languageOptions.globals" to define global variables for your f
29
35
 
30
36
  Please see the following page for information on how to convert your config object into the correct format:
31
37
  https://eslint.org/docs/latest/use/configure/migration-guide#configuring-language-options
38
+
39
+ If you're not using "globals" directly (it may be coming from a plugin), please see the following:
40
+ https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config
32
41
  `,
33
42
 
34
43
  ignorePatterns: `
@@ -38,6 +47,9 @@ Flat config uses "ignores" to specify files to ignore.
38
47
 
39
48
  Please see the following page for information on how to convert your config object into the correct format:
40
49
  https://eslint.org/docs/latest/use/configure/migration-guide#ignoring-files
50
+
51
+ If you're not using "ignorePatterns" directly (it may be coming from a plugin), please see the following:
52
+ https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config
41
53
  `,
42
54
 
43
55
  noInlineConfig: `
@@ -56,6 +68,9 @@ Flat config is an array that acts like the eslintrc "overrides" array.
56
68
 
57
69
  Please see the following page for information on how to convert your config object into the correct format:
58
70
  https://eslint.org/docs/latest/use/configure/migration-guide#glob-based-configs
71
+
72
+ If you're not using "overrides" directly (it may be coming from a plugin), please see the following:
73
+ https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config
59
74
  `,
60
75
 
61
76
  parser: `
@@ -65,6 +80,9 @@ Flat config uses "languageOptions.parser" to override the default parser.
65
80
 
66
81
  Please see the following page for information on how to convert your config object into the correct format:
67
82
  https://eslint.org/docs/latest/use/configure/migration-guide#custom-parsers
83
+
84
+ If you're not using "parser" directly (it may be coming from a plugin), please see the following:
85
+ https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config
68
86
  `,
69
87
 
70
88
  parserOptions: `
@@ -74,6 +92,9 @@ Flat config uses "languageOptions.parserOptions" to specify parser options.
74
92
 
75
93
  Please see the following page for information on how to convert your config object into the correct format:
76
94
  https://eslint.org/docs/latest/use/configure/migration-guide#configuring-language-options
95
+
96
+ If you're not using "parserOptions" directly (it may be coming from a plugin), please see the following:
97
+ https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config
77
98
  `,
78
99
 
79
100
  reportUnusedDisableDirectives: `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint",
3
- "version": "9.2.0",
3
+ "version": "9.4.0",
4
4
  "author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
5
5
  "description": "An AST-based pattern checker for JavaScript.",
6
6
  "bin": {
@@ -68,11 +68,11 @@
68
68
  "dependencies": {
69
69
  "@eslint-community/eslint-utils": "^4.2.0",
70
70
  "@eslint-community/regexpp": "^4.6.1",
71
- "@eslint/eslintrc": "^3.0.2",
72
- "@eslint/js": "9.2.0",
73
- "@humanwhocodes/config-array": "^0.13.0",
71
+ "@eslint/config-array": "^0.15.1",
72
+ "@eslint/eslintrc": "^3.1.0",
73
+ "@eslint/js": "9.4.0",
74
74
  "@humanwhocodes/module-importer": "^1.0.1",
75
- "@humanwhocodes/retry": "^0.2.3",
75
+ "@humanwhocodes/retry": "^0.3.0",
76
76
  "@nodelib/fs.walk": "^1.2.8",
77
77
  "ajv": "^6.12.4",
78
78
  "chalk": "^4.0.0",
@@ -142,7 +142,7 @@
142
142
  "markdown-it": "^12.2.0",
143
143
  "markdown-it-container": "^3.0.0",
144
144
  "markdownlint": "^0.34.0",
145
- "markdownlint-cli": "^0.39.0",
145
+ "markdownlint-cli": "^0.40.0",
146
146
  "marked": "^4.0.8",
147
147
  "metascraper": "^5.25.7",
148
148
  "metascraper-description": "^5.25.7",