eslint 9.1.0 → 9.1.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/README.md CHANGED
@@ -48,7 +48,7 @@ Prerequisites: [Node.js](https://nodejs.org/) (`^18.18.0`, `^20.9.0`, or `>=21.1
48
48
  You can install and configure ESLint using this command:
49
49
 
50
50
  ```shell
51
- npm init @eslint/config
51
+ npm init @eslint/config@latest
52
52
  ```
53
53
 
54
54
  After that, you can run ESLint on any file or directory like this:
package/bin/eslint.js CHANGED
@@ -140,11 +140,11 @@ ${getErrorMessage(error)}`;
140
140
  if (process.argv.includes("--init")) {
141
141
 
142
142
  // `eslint --init` has been moved to `@eslint/create-config`
143
- console.warn("You can also run this command directly using 'npm init @eslint/config'.");
143
+ console.warn("You can also run this command directly using 'npm init @eslint/config@latest'.");
144
144
 
145
145
  const spawn = require("cross-spawn");
146
146
 
147
- spawn.sync("npm", ["init", "@eslint/config"], { encoding: "utf8", stdio: "inherit" });
147
+ spawn.sync("npm", ["init", "@eslint/config@latest"], { encoding: "utf8", stdio: "inherit" });
148
148
  return;
149
149
  }
150
150
 
@@ -6,7 +6,7 @@ module.exports = function(it) {
6
6
  return `
7
7
  ESLint couldn't find a configuration file. To set up a configuration file for this project, please run:
8
8
 
9
- npm init @eslint/config
9
+ npm init @eslint/config@latest
10
10
 
11
11
  ESLint looked for configuration files in ${directoryPath} and its ancestors. If it found none, it then looked in your home directory.
12
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint",
3
- "version": "9.1.0",
3
+ "version": "9.1.1",
4
4
  "author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
5
5
  "description": "An AST-based pattern checker for JavaScript.",
6
6
  "bin": {