UNPKG

310 BTypeScriptView Raw
1import type { Rule } from 'eslint';
2
3export type Extension = `.${string}`;
4
5export type ESLintSettings = NonNullable<Rule.RuleContext['settings']> & {
6 'import/extensions'?: Extension[];
7 'import/parsers'?: { [k: string]: Extension[] };
8 'import/cache'?: { lifetime: number | '∞' | 'Infinity' };
9};