eslint-config/README.md

28 lines
632 B
Markdown
Raw Permalink Normal View History

2022-08-26 18:34:08 +02:00
# @walidoux/eslint-config
2022-08-26 18:31:31 +02:00
2023-08-14 00:09:45 +02:00
⚙️ Walidoux's ESlint config. [![npm](https://img.shields.io/npm/v/@walidoux/eslint-config?color=%230cf)](https://www.npmjs.com/package/@walidoux/eslint-config)
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
```