Skip to content

Commit

Permalink
docs: update docs to add other official configs from core
Browse files Browse the repository at this point in the history
  • Loading branch information
NickDJM committed Sep 21, 2023
1 parent a74e496 commit 5f65e09
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ Extends [eslint-config-airbnb](https://github.com/airbnb/javascript) and [eslint
For more detail on the rules implemented, see the config itself:

- [recommended](./src/recommended.js)
- [jquery](./src/jquery.js)
- [legacy](./src/legacy.js)
- [passing](./src/passing.js)

## Installation

Expand All @@ -23,13 +26,36 @@ npm install eslint-plugin-drupal-contrib@2 --save-dev

## Usage

### Drupal 9.x
### Recommended

Add the following to your eslint configuration file

```jsx
extends: ["plugin:drupal-contrib/recommended"]
```
### jQuery

Add the following to your eslint configuration file

```jsx
extends: ["plugin:drupal-contrib/jquery"]
```

### Legacy

Add the following to your eslint configuration file

```jsx
extends: ["plugin:drupal-contrib/legacy"]
```

### Passing

Add the following to your eslint configuration file

```jsx
extends: ["plugin:drupal-contrib/passing"]
```

## Versioning

Expand Down

0 comments on commit 5f65e09

Please sign in to comment.