diff --git a/README.md b/README.md index f4a2934d0c..0698e115b4 100644 --- a/README.md +++ b/README.md @@ -331,7 +331,7 @@ export default antfu( ) ``` -We also provided a `overrides` options in each integration to make it easier: +We also provided the `overrides` options in each integration to make it easier: ```js // eslint.config.js @@ -356,9 +356,9 @@ export default antfu({ }) ``` -### Pipeline +### Config Composer -Since v2.10.0, the factory function `antfu()` returns a [pipeline object from `eslint-flat-config-utils`](https://github.com/antfu/eslint-flat-config-utils#pipe) where you can chain the methods to compose the config even more flexibly. +Since v2.10.0, the factory function `antfu()` returns a [`FlatConfigComposer` object from `eslint-flat-config-utils`](https://github.com/antfu/eslint-flat-config-utils#composer) where you can chain the methods to compose the config even more flexibly. ```js // eslint.config.js diff --git a/src/factory.ts b/src/factory.ts index b20d9f0e15..d8f7b7a2b5 100644 --- a/src/factory.ts +++ b/src/factory.ts @@ -254,20 +254,20 @@ export function antfu( if (Object.keys(fusedConfig).length) configs.push([fusedConfig]) - let pipeline = new FlatConfigComposer() + let composer = new FlatConfigComposer() - pipeline = pipeline + composer = composer .append( ...configs, ...userConfigs as any, ) if (autoRenamePlugins) { - pipeline = pipeline + composer = composer .renamePlugins(defaultPluginRenaming) } - return pipeline + return composer } export type ResolvedOptions = T extends boolean