Skip to content

Commit

Permalink
docs: Add workaround if npx fails (#108)
Browse files Browse the repository at this point in the history
Co-authored-by: 唯然 <weiran.zsd@outlook.com>
  • Loading branch information
nzakas and aladdin-add authored Aug 19, 2024
1 parent e0cfe18 commit 9250f28
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/migrate-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ bunx @eslint/migrate-config .eslintrc.json

The tool will automatically find your `.eslintignore` file in the same directory and migrate that into your new configuration file.

If you receive any npm errors while running using `npx`, install the package manually first:

```shell
npm i @eslint/migrate-config
npx @eslint/migrate-config .eslintrc.json
```

### CommonJS Output

By default, this tool generates an ESM file (`.mjs` extension). If you'd like to generate a CommonJS file instead, pass the `--commonjs` flag:
Expand Down

0 comments on commit 9250f28

Please sign in to comment.