Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 5bf10ae

Browse files
committed
Define knwon plugins
1 parent 40f11d4 commit 5bf10ae

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { Environments } from './env';
22
import type { Extends } from './extends';
33
import type { Overrides } from './overrides';
44
import type { Parser, ParserOptions } from './parser-options';
5+
import type { Plugin } from './plugin';
56
import type { Rules } from './rules';
67
import type { Settings } from './settings';
78

@@ -52,7 +53,7 @@ export interface EslintConfig {
5253
*
5354
* @see [Configuring Plugins](https://eslint.org/docs/user-guide/configuring/plugins#configuring-plugins)
5455
*/
55-
plugins?: string[];
56+
plugins?: Plugin[];
5657
/**
5758
* Rules.
5859
*

src/plugin.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import type { LiteralUnion } from './utility-types';
2+
3+
/** Plugin. */
4+
export type Plugin = LiteralUnion<'@typescript-eslint' | 'prettier' | 'import' | 'jsdoc' | 'spellcheck'>;

0 commit comments

Comments
 (0)