Skip to content

Commit

Permalink
fix(types): update configs types (#1344)
Browse files Browse the repository at this point in the history
Co-authored-by: Brett Zamir <[email protected]>
  • Loading branch information
gurgelio and brettz9 authored Dec 11, 2024
1 parent f9b102d commit d2c6040
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,13 @@ import validTypes from './rules/validTypes.js';
import { getJsdocProcessorPlugin } from './getJsdocProcessorPlugin.js';

/**
* @typedef {"recommended" | "stylistic" | "contents" | "logical"} ConfigGroups
* @typedef {"" | "-typescript" | "-typescript-flavor"} ConfigVariants
* @typedef {"" | "-error"} ErrorLevelVariants
* @type {import('eslint').ESLint.Plugin & {
* configs: Record<
* "recommended"|"recommended-error"|"recommended-typescript"|
* "recommended-typescript-error"|"recommended-typescript-flavor"|
* "recommended-typescript-flavor-error"|"flat/recommended"|
* "flat/recommended-error"|"flat/recommended-typescript"|
* "flat/recommended-typescript-error"|
* "flat/recommended-typescript-flavor"|
* "flat/recommended-typescript-flavor-error",
* import('eslint').Linter.FlatConfig
* >
* }}
*/
* configs: Record<`flat/${ConfigGroups}${ConfigVariants}${ErrorLevelVariants}`, import('eslint').Linter.Config>
* }}
*/
const index = {
// @ts-expect-error Ok
configs: {},
Expand Down

0 comments on commit d2c6040

Please sign in to comment.