From bd480dc731dc1597142223762c658bc6bd623cab Mon Sep 17 00:00:00 2001 From: vvo Date: Wed, 29 Jul 2015 09:56:16 +0200 Subject: [PATCH] docs: add a note on how to put our config globally --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 72b1a4c8..f958ec28 100644 --- a/README.md +++ b/README.md @@ -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 +``` +