Skip to content

Commit e433f7d

Browse files
authored
fix(typescript): remove properties from return value of config function (#1481)
1 parent 005c3fd commit e433f7d

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/index-cjs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const createRecommendedRuleset = (warnOrError, flatName) => {
142142
...(flatName ? {
143143
name: 'jsdoc/' + flatName,
144144
} : {}),
145-
// @ts-expect-error Ok
145+
// @ts-expect-error ESLint 8 plugins
146146
plugins:
147147
flatName ? {
148148
jsdoc: index,

src/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,9 @@ export default index;
1414
* config?: `flat/${import('./index-cjs.js').ConfigGroups}${import('./index-cjs.js').ConfigVariants}${import('./index-cjs.js').ErrorLevelVariants}`,
1515
* settings?: Partial<import('./iterateJsdoc.js').Settings>
1616
* }
17-
* ) => import('eslint').Linter.Config) & import('eslint').ESLint.Plugin & {
18-
* configs: Record<`flat/${import('./index-cjs.js').ConfigGroups}${import('./index-cjs.js').ConfigVariants}${import('./index-cjs.js').ErrorLevelVariants}`,
19-
* import('eslint').Linter.Config>
20-
* }}
17+
* ) => import('eslint').Linter.Config)}
2118
*/
2219
/* eslint-enable jsdoc/valid-types -- Bug */
23-
// @ts-expect-error Ok
2420
export const jsdoc = function (cfg) {
2521
/** @type {import('eslint').Linter.Config} */
2622
let outputConfig = {

0 commit comments

Comments
 (0)