UNPKG

eslint-plugin-beautiful-sort

Version:
16 lines (15 loc) 791 B
import { Rule } from 'eslint'; import { Program, ImportDeclaration } from 'estree'; import { ImportNodeParams } from './import-node'; import { Type } from './type.enum'; export declare const getImports: (program: Program) => ImportDeclaration[]; export declare const isEmpty: <T>(array: T[]) => boolean; export type SortTable = { [key in Type]?: number; } & { rest: number; }; export declare const createSortTable: (order: Type[]) => SortTable; export declare const getSortedImports: (imports: ImportDeclaration[], params: ImportNodeParams) => ImportDeclaration[]; export declare const reportErrors: (context: Rule.RuleContext, imports: ImportDeclaration[], sortedImports: ImportDeclaration[]) => void; export declare const parseStringSpecial: (stringSpecial: string[]) => RegExp[];