UNPKG

eslint-plugin-perfectionist

Version:

ESLint plugin for sorting various data such as objects, imports, types, enums, JSX props, etc.

14 lines (13 loc) 470 B
import { TSESTree } from '@typescript-eslint/types' import { TSESLint } from '@typescript-eslint/utils' import { MessageId, Options } from './types.js' export declare let defaultOptions: Required<Options[number]> export declare function sortObject({ matchedAstSelectors, context, node, }: { context: Readonly<TSESLint.RuleContext<MessageId, Options>> node: TSESTree.ObjectExpression | TSESTree.ObjectPattern matchedAstSelectors: ReadonlySet<string> }): void