Skip to content

Commit

Permalink
chore(docs): Update eslint to adhere to Gatsby style guide (#18671)
Browse files Browse the repository at this point in the history
* avoid `we` and change to `you`

* grammar fix


Co-authored-by: Lennart <lekoarts@gmail.com>
  • Loading branch information
adibfirman and LekoArts committed Oct 15, 2019
1 parent 98350f3 commit d76a62a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/eslint.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ JavaScript, being a dynamic and loosely-typed language, is especially prone to d

Gatsby ships with a built-in [ESLint](https://eslint.org) setup. For _most_ users, our built-in ESlint setup is all you need. If you know however that you'd like to customize your ESlint config e.g. your company has their own custom ESlint setup, this shows how this can be done.

We'll replicate (mostly) the [ESLint config Gatsby ships with](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/utils/eslint-config.js) so you can then add additional presets, plugins, and rules.
You'll replicate (mostly) the [ESLint config Gatsby ships with](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/utils/eslint-config.js) so you can then add additional presets, plugins, and rules.

```shell

# First install the necessary ESLint dependencies
npm install --save-dev eslint-config-react-app
```

Now that we have our packages installed, create a new file at the root of the site named `.eslintrc.js` using the command below.
Now that your packages have been installed, create a new file at the root of the site named `.eslintrc.js` using the command below.

```shell
# Create a config file for ESLint
Expand Down

0 comments on commit d76a62a

Please sign in to comment.