eslint-plugin-perfectionist
Version:
ESLint plugin for sorting various data such as objects, imports, types, enums, JSX props, etc.
14 lines (13 loc) • 448 B
TypeScript
import { RuleContext } from '@typescript-eslint/utils/ts-eslint'
import { TSESTree } from '@typescript-eslint/types'
import { MessageId, Options } from './types.js'
export declare let defaultOptions: Required<Options[number]>
export declare function sortEnum({
matchedAstSelectors,
context,
node,
}: {
context: Readonly<RuleContext<MessageId, Options>>
matchedAstSelectors: ReadonlySet<string>
node: TSESTree.TSEnumDeclaration
}): void