UNPKG

eslint-module-utils

Version:

Core utilities to support eslint-plugin-import and other module-related plugins.

10 lines (7 loc) 310 B
import type { Rule } from 'eslint'; export type Extension = `.${string}`; export type ESLintSettings = NonNullable<Rule.RuleContext['settings']> & { 'import/extensions'?: Extension[]; 'import/parsers'?: { [k: string]: Extension[] }; 'import/cache'?: { lifetime: number | '∞' | 'Infinity' }; };