UNPKG

sortier

Version:
18 lines (17 loc) 765 B
import { SortierOptions as BaseSortierOptions } from "../../config/index.js"; import { ILanguage } from "../../language.js"; import { SortDeclarationsOptions } from "../sortDeclarations/index.js"; export type SortierOptions = Partial<CssSortierOptionsRequired>; export interface CssSortierOptionsRequired { parser?: "less" | "scss"; sortDeclarations: SortDeclarationsOptions; } export declare class Reprinter implements ILanguage { static readonly LESS_EXTENSIONS: string[]; static readonly SCSS_EXTENSIONS: string[]; getRewrittenContents(filename: string, fileContents: string, options: BaseSortierOptions): string; isFileSupported(filename: string): boolean; private getValidatedOptions; private getParser; private sortNode; }