UNPKG

eslint-plugin-perfectionist

Version:

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

14 lines (13 loc) 488 B
import { TSESTree } from '@typescript-eslint/types' /** * Checks whether a class element is supported by the sort-classes rule. * * Unknown elements should be ignored to avoid crashes with non-standard parsers * while letting known elements keep their ordering behavior. * * @param member - The class element to check. * @returns True when the element is a known, supported class member. */ export declare function isKnownClassElement( member: TSESTree.ClassElement, ): boolean