Skip to content

Commit

Permalink
Docs: Clarify package.json requirement in Getting Started (refs #13549)…
Browse files Browse the repository at this point in the history
… (#13696)

* Docs: Clarify package.json requirement in Getting Started (refs #13549)

* Update docs/user-guide/getting-started.md
  • Loading branch information
nzakas committed Sep 22, 2020
1 parent 044560d commit 30b76c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/user-guide/getting-started.md
Expand Up @@ -20,7 +20,7 @@ npm install eslint --save-dev
yarn add eslint --dev
```

You should then set up a configuration file:
You should then set up a configuration file, and the easiest way to do that is to use the `--init` flag:

```
$ npx eslint --init
Expand All @@ -30,6 +30,8 @@ $ npx eslint --init
$ yarn run eslint --init
```

**Note:** `--init` assumes you have a `package.json` file already. If you don't, make sure to run `npm init` or `yarn init` beforehand.

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

```
Expand Down
Binary file added eslint-7.8.0.tgz
Binary file not shown.

0 comments on commit 30b76c9

Please sign in to comment.