Skip to content

Commit

Permalink
docs: add a note on how to put our config globally
Browse files Browse the repository at this point in the history
  • Loading branch information
vvo committed Jul 29, 2015
1 parent 8306272 commit bd480dc
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,25 @@ The rules are the ones from the [Airbnb JavaScript style guide](https://github.c

See "Ignoring Files and Directories" on [ESLint website](http://eslint.org/docs/user-guide/configuring.html#ignoring-files-and-directories).

## Using as a global eslint config

You can have a `~/.eslintrc` config that will be used if your project has no `.eslintrc`.

Create a `~/.eslintrc` with:

```json
{
"extends": [
"eslint-config-airbnb",
"eslint-config-algolia"
]
}
```

Then:

```sh
cd ~
npm install eslint-config-airbnb eslint-config-algolia
```

0 comments on commit bd480dc

Please sign in to comment.