UNPKG

prettier-plugin-pkg

Version:

An opinionated package.json formatter plugin for Prettier

8 lines (7 loc) 514 B
import type { ObjectProperty, StringLiteral } from './types.js'; export declare function alphabetSort(a: number, b: number): number; export declare function alphabetSort(a: string, b: string): number; export declare const sortObject: (a: ObjectProperty, b: ObjectProperty) => number; export declare const sortStringArray: (a: StringLiteral, b: StringLiteral) => number; export declare const sortScriptNames: (scriptNames: string[]) => string[]; export declare const sortScripts: (props: ObjectProperty[]) => void;