From 6b72426e2a34d42b614f69746c77fc8633ed5783 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sat, 6 Jul 2024 10:30:17 +0800 Subject: [PATCH] docs: rename prefix back (#528) Co-authored-by: JoshuaKGoldberg --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 346625c659..a407d34fd8 100644 --- a/README.md +++ b/README.md @@ -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. +
+Change back to original prefix + +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: