refactor: 📝 update docs
This commit is contained in:
parent
d54c01ff0f
commit
ef1ac6bb45
15
README.md
15
README.md
@ -14,8 +14,19 @@ NPM ➜ npm install --save-dev eslint @walidoux/eslint-config
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Add it to your project inside `package.json`'s file.
|
Create a `.eslintrc` configuration and extend the base configuration.
|
||||||
|
|
||||||
```json
|
```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"
|
||||||
|
]
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user