UNPKG

eslint-plugin-paths

Version:

A plugin for ESLint, to force use paths aliases from tsconfig

36 lines (33 loc) 1.02 kB
import * as estree from 'estree'; import * as eslint from 'eslint'; declare const rules: { alias: { meta: { fixable: "code"; schema: { type: "array"; minItems: number; maxItems: number; items: { type: "object"; properties: { configFilePath: { type: "string"; }; ignoredPaths: { type: "array"; items: { type: "string"; }; }; }; additionalProperties: false; }[]; }; }; create(context: eslint.Rule.RuleContext): { ImportDeclaration(node: estree.ImportDeclaration & eslint.Rule.NodeParentExtension): void; }; }; }; export { rules };