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