Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita26b402

Browse files
authored
fix: use @eslint/create-config latest (#18373)
* docs: use @eslint/create-config latestrefs:#18369,#18361,* chore: review suggestions
1 parentb78d831 commita26b402

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Prerequisites: [Node.js](https://nodejs.org/) (`^18.18.0`, `^20.9.0`, or `>=21.1
4848
You can install and configure ESLint using this command:
4949

5050
```shell
51-
npm init @eslint/config
51+
npm init @eslint/config@latest
5252
```
5353

5454
After that, you can run ESLint on any file or directory like this:

‎bin/eslint.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ ${getErrorMessage(error)}`;
140140
if(process.argv.includes("--init")){
141141

142142
// `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'.");
144144

145145
constspawn=require("cross-spawn");
146146

147-
spawn.sync("npm",["init","@eslint/config"],{encoding:"utf8",stdio:"inherit"});
147+
spawn.sync("npm",["init","@eslint/config@latest"],{encoding:"utf8",stdio:"inherit"});
148148
return;
149149
}
150150

‎docs/src/use/getting-started.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To use ESLint, you must have [Node.js](https://nodejs.org/en/) (`^18.18.0`, `^20
2121
You can install and configure ESLint using this command:
2222

2323
```shell
24-
npm init @eslint/config
24+
npm init @eslint/config@latest
2525
```
2626

2727
If you want to use a specific shareable config that is hosted on npm, you can use the`--config` option and specify the package name:
@@ -30,7 +30,7 @@ If you want to use a specific shareable config that is hosted on npm, you can us
3030
# use `eslint-config-standard` shared config
3131

3232
# npm 7+
33-
npm init @eslint/config -- --config eslint-config-standard
33+
npm init @eslint/config@latest -- --config eslint-config-standard
3434

3535
```
3636

‎messages/no-config-found.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = function(it) {
66
return`
77
ESLint couldn't find a configuration file. To set up a configuration file for this project, please run:
88
9-
npm init @eslint/config
9+
npm init @eslint/config@latest
1010
1111
ESLint looked for configuration files in${directoryPath} and its ancestors. If it found none, it then looked in your home directory.
1212

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp