diff --git a/.README/processors.md b/.README/processors.md index 8de1c88a..75f9b7c5 100644 --- a/.README/processors.md +++ b/.README/processors.md @@ -58,10 +58,10 @@ Alternatively you can just use our built-in configs which do the above for you: import jsdoc from 'eslint-plugin-jsdoc'; export default [ - ...index.configs.examples + ...jsdoc.configs.examples // Or for @default, @param and @property default expression processing - // ...index.configs['default-expressions'] + // ...jsdoc.configs['default-expressions'] // Or for both, use: // ...jsdoc.configs['examples-and-default-expressions'], diff --git a/docs/processors.md b/docs/processors.md index 3998e043..d7863e5d 100644 --- a/docs/processors.md +++ b/docs/processors.md @@ -60,10 +60,10 @@ Alternatively you can just use our built-in configs which do the above for you: import jsdoc from 'eslint-plugin-jsdoc'; export default [ - ...index.configs.examples + ...jsdoc.configs.examples // Or for @default, @param and @property default expression processing - // ...index.configs['default-expressions'] + // ...jsdoc.configs['default-expressions'] // Or for both, use: // ...jsdoc.configs['examples-and-default-expressions'], diff --git a/src/index.js b/src/index.js index a8343b94..b01eacd3 100644 --- a/src/index.js +++ b/src/index.js @@ -371,12 +371,16 @@ index.configs['examples-and-default-expressions'] = /** @type {import('eslint'). }, }, ...index.configs.examples.map((config) => { - delete config.plugins; - return config; + return { + ...config, + plugins: {} + }; }), ...index.configs['default-expressions'].map((config) => { - delete config.plugins; - return config; + return { + ...config, + plugins: {} + }; }) ]);