Skip to content

Commit

Permalink
docs: use @eslint/create-config latest (#103)
Browse files Browse the repository at this point in the history
We've received a few reports generated configs seem to be eslintrc format,
so I've updated the documentation to use the latest version.

refs: eslint/eslint#18369,
eslint/eslint#18361,
  • Loading branch information
aladdin-add committed Apr 22, 2024
1 parent dbd8742 commit 8366a9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -10,19 +10,19 @@ You can use npm/npx(shipped with Node.js).

```bash
# use npm
npm init @eslint/config
npm init @eslint/config@latest
```

```bash
# use npx
npx @eslint/create-config
npx @eslint/create-config@latest
```

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:

```bash
# use `eslint-config-standard` shared config
npm init @eslint/config -- --config eslint-config-standard
npm init @eslint/config@latest -- --config eslint-config-standard
```

To use an eslintrc-style (legacy) shared config:
Expand Down

0 comments on commit 8366a9e

Please sign in to comment.