Skip to content

Commit

Permalink
feat(package-scripts): link to official docs (discordjs#890)
Browse files Browse the repository at this point in the history
  • Loading branch information
almostSouji authored Oct 4, 2021
1 parent 1bb827b commit e82bacb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions guide/improving-dev-environment/package-json-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ Let's create another script to lint your code via the command line.
::: tip
If you do not have ESLint installed globally, you can use [npx](https://alligator.io/workflow/npx/) to run the ESLint script for your local directory. For more info on how to set it up, you can read the site [here](https://alligator.io/workflow/npx/).
:::

Add the following line to your scripts:

```json
Expand Down Expand Up @@ -177,3 +178,7 @@ pnpm run <script-name>
```
:::
::::

::: tip
Package scripts allow some more configuration (like pre-, post- and lifecycle scripts) than we can cover in this guide. Check out the official documentation on [docs.npmjs.com](https://docs.npmjs.com/cli/v7/using-npm/scripts) for more information.
:::

0 comments on commit e82bacb

Please sign in to comment.