Skip to content

Commit

Permalink
docs: detailed installation in legacy .eslintrc.js file (#22)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <[email protected]>
  • Loading branch information
GauBen and antfu authored Jul 16, 2024
1 parent e74f4ce commit 0c01d3f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/guide/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,25 @@ export default [
]
```

<details>
<summary>Legacy Config</summary>

While no longer supported, you may still use the legacy `.eslintrc.js` file:

```js
// .eslintrc.js
module.exports = {
plugins: [
'command'
],
rules: {
'command/command': 'error',
},
}
```

</details>

## Custom Commands

It's also possible to define your custom commands.
Expand Down

0 comments on commit 0c01d3f

Please sign in to comment.