Skip to content

Commit d2c6040

Browse files
leogurjabrettz9
andauthoredDec 11, 2024··
fix(types): update configs types (#1344)
Co-authored-by: Brett Zamir <brettz9@yahoo.com>
1 parent f9b102d commit d2c6040

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed
 

‎src/index.js

+6-12
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,13 @@ import validTypes from './rules/validTypes.js';
5959
import { getJsdocProcessorPlugin } from './getJsdocProcessorPlugin.js';
6060

6161
/**
62+
* @typedef {"recommended" | "stylistic" | "contents" | "logical"} ConfigGroups
63+
* @typedef {"" | "-typescript" | "-typescript-flavor"} ConfigVariants
64+
* @typedef {"" | "-error"} ErrorLevelVariants
6265
* @type {import('eslint').ESLint.Plugin & {
63-
* configs: Record<
64-
* "recommended"|"recommended-error"|"recommended-typescript"|
65-
* "recommended-typescript-error"|"recommended-typescript-flavor"|
66-
* "recommended-typescript-flavor-error"|"flat/recommended"|
67-
* "flat/recommended-error"|"flat/recommended-typescript"|
68-
* "flat/recommended-typescript-error"|
69-
* "flat/recommended-typescript-flavor"|
70-
* "flat/recommended-typescript-flavor-error",
71-
* import('eslint').Linter.FlatConfig
72-
* >
73-
* }}
74-
*/
66+
* configs: Record<`flat/${ConfigGroups}${ConfigVariants}${ErrorLevelVariants}`, import('eslint').Linter.Config>
67+
* }}
68+
*/
7569
const index = {
7670
// @ts-expect-error Ok
7771
configs: {},

0 commit comments

Comments
 (0)
Please sign in to comment.