2022-08-26 18:34:08 +02:00
|
|
|
# @walidoux/eslint-config
|
2022-08-26 18:31:31 +02:00
|
|
|
|
2022-08-26 18:34:08 +02:00
|
|
|
⚙️ Walidoux's ESlint config.
|
2022-08-26 18:31:31 +02:00
|
|
|
|
2022-08-26 18:34:08 +02:00
|
|
|
[![npm](https://img.shields.io/npm/v/@walidoux/eslint-config?color=%230cf)](https://www.npmjs.com/package/@walidoux/eslint-config)[![license](https://img.shields.io/github/license/walidoux/eslint-config?color=%2385f)](https://github.com/walidoux/eslint-config/blob/main/LICENSE)
|
2022-08-26 18:31:31 +02:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
```bash
|
2022-08-26 18:34:08 +02:00
|
|
|
YARN ➜ yarn add -D eslint @walidoux/eslint-config
|
2022-08-26 18:31:31 +02:00
|
|
|
|
2022-08-26 18:34:08 +02:00
|
|
|
NPM ➜ npm install --save-dev eslint @walidoux/eslint-config
|
2022-08-26 18:31:31 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2022-08-26 18:38:24 +02:00
|
|
|
Create a `.eslintrc` configuration and extend the base configuration.
|
2022-08-26 18:31:31 +02:00
|
|
|
|
|
|
|
```json
|
2022-08-26 18:38:24 +02:00
|
|
|
{ "extends": "@walidoux/eslint-config" }
|
|
|
|
```
|
|
|
|
|
|
|
|
When extending multiple configurations, keep the base configuration first.
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
2022-08-27 22:53:11 +02:00
|
|
|
"extends": ["@walidoux/eslint-config", "other-sort-of-plugin"]
|
2022-08-26 18:38:24 +02:00
|
|
|
}
|
2022-08-26 18:31:31 +02:00
|
|
|
```
|