From ef1ac6bb454f23bbc50bf12abcaed791fc8690b6 Mon Sep 17 00:00:00 2001 From: Walidoux Date: Fri, 26 Aug 2022 17:38:24 +0100 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=93=9D=20update=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 367d703..adf7b21 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,19 @@ NPM ➜ npm install --save-dev eslint @walidoux/eslint-config ## Usage -Add it to your project inside `package.json`'s file. +Create a `.eslintrc` configuration and extend the base configuration. ```json -{ "eslint": "@walidoux/eslint-config" } +{ "extends": "@walidoux/eslint-config" } +``` + +When extending multiple configurations, keep the base configuration first. + +```json +{ + "extends": [ + "@walidoux/eslint-config", + "other-sort-of-plugin" + ] +} ```