Skip to content

Commit

Permalink
fix(TS): make configs explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Dec 31, 2023
1 parent dd9e71d commit be5b0ef
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,20 @@ import validTypes from './rules/validTypes.js';

/**
* @type {import('eslint').ESLint.Plugin & {
* configs: Record<string, import('eslint').ESLint.ConfigData|{}>
* 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').ESLint.ConfigData|{}
* >
* }}
*/
const index = {
// @ts-expect-error Ok
configs: {},
rules: {
'check-access': checkAccess,
Expand Down

0 comments on commit be5b0ef

Please sign in to comment.