knip
Version:
Find unused files, dependencies and exports in your TypeScript and JavaScript projects
29 lines (28 loc) • 691 B
TypeScript
type ParserOptions = {
project?: string;
parser?: string;
babelOptions?: {
plugins: string[];
presets: string[];
};
};
type Settings = Record<string, Record<string, unknown> | string>;
type Rules = Record<string, string | number>;
type BaseConfig = {
extends?: string | string[];
parser?: string;
parserOptions?: ParserOptions;
processor?: string;
plugins?: string[];
settings?: Settings;
rules?: Rules;
};
export type OverrideConfig = BaseConfig & {
files: string[];
overrides: OverrideConfig;
};
export type ESLintConfig = BaseConfig & {
env?: Record<string, boolean>;
overrides?: OverrideConfig[];
};
export {};