Skip to content

Commit

Permalink
docs: rename prefix back (#528)
Browse files Browse the repository at this point in the history
Co-authored-by: JoshuaKGoldberg <[email protected]>
  • Loading branch information
antfu and JoshuaKGoldberg authored Jul 6, 2024
1 parent 9c0c0c5 commit 6b72426
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,23 @@ type foo = { bar: 2 }
Since v2.9.0, this preset will automatically rename the plugins also for your custom configs. You can use the original prefix to override the rules directly.

<details>
<summary>Change back to original prefix</summary>

If you really want to use the original prefix, you can revert the plugin renaming by:

```ts
import antfu from '@antfu/eslint-config'

export default antfu()
.renamePlugins({
ts: '@typescript-eslint',
yaml: 'yml',
node: 'n'
// ...
})
```

### Rules Overrides

Certain rules would only be enabled in specific files, for example, `ts/*` rules would only be enabled in `.ts` files and `vue/*` rules would only be enabled in `.vue` files. If you want to override the rules, you need to specify the file extension:
Expand Down

0 comments on commit 6b72426

Please sign in to comment.