Skip to content

Commit 2fbd47c

Browse files
committedJul 29, 2024·
fix(examples processor): ensure config can be loaded with plugins
Also: - docs: fix processor docs
1 parent df43df9 commit 2fbd47c

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed
 

‎.README/processors.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ Alternatively you can just use our built-in configs which do the above for you:
5858
import jsdoc from 'eslint-plugin-jsdoc';
5959

6060
export default [
61-
...index.configs.examples
61+
...jsdoc.configs.examples
6262

6363
// Or for @default, @param and @property default expression processing
64-
// ...index.configs['default-expressions']
64+
// ...jsdoc.configs['default-expressions']
6565

6666
// Or for both, use:
6767
// ...jsdoc.configs['examples-and-default-expressions'],

‎docs/processors.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ Alternatively you can just use our built-in configs which do the above for you:
6060
import jsdoc from 'eslint-plugin-jsdoc';
6161

6262
export default [
63-
...index.configs.examples
63+
...jsdoc.configs.examples
6464

6565
// Or for @default, @param and @property default expression processing
66-
// ...index.configs['default-expressions']
66+
// ...jsdoc.configs['default-expressions']
6767

6868
// Or for both, use:
6969
// ...jsdoc.configs['examples-and-default-expressions'],

‎src/index.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -371,12 +371,16 @@ index.configs['examples-and-default-expressions'] = /** @type {import('eslint').
371371
},
372372
},
373373
...index.configs.examples.map((config) => {
374-
delete config.plugins;
375-
return config;
374+
return {
375+
...config,
376+
plugins: {}
377+
};
376378
}),
377379
...index.configs['default-expressions'].map((config) => {
378-
delete config.plugins;
379-
return config;
380+
return {
381+
...config,
382+
plugins: {}
383+
};
380384
})
381385
]);
382386

0 commit comments

Comments
 (0)
Please sign in to comment.