UNPKG

eslint-plugin-lodash-es

Version:

ESLint plugin that enforces destructured imports from lodash-es and auto-fixes them

25 lines (22 loc) 637 B
interface FlatConfig { name?: string; plugins?: Record<string, ESLintPlugin>; rules?: Record<string, RuleConfig>; } interface LegacyConfig { plugins: string[]; rules: Record<string, string>; } interface ESLintPlugin { rules: Record<string, any>; configs: { 'base': FlatConfig[]; 'recommended': FlatConfig[]; 'all': FlatConfig[]; 'recommended-legacy': LegacyConfig; }; } type RuleConfig = 'off' | 0 | 'warn' | 1 | 'error' | 2 | [RuleLevel, ...any[]]; type RuleLevel = 'off' | 'warn' | 'error' | 0 | 1 | 2; declare const plugin: ESLintPlugin; export { plugin as default };