eslint-plugin-perfectionist
Version:
ESLint plugin for sorting various data such as objects, imports, types, enums, JSX props, etc.
14 lines (13 loc) • 437 B
TypeScript
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 sortClass({
matchedAstSelectors,
context,
node,
}: {
context: Readonly<TSESLint.RuleContext<MessageId, Options>>
matchedAstSelectors: ReadonlySet<string>
node: TSESTree.ClassBody
}): void