UNPKG

eslint-plugin-perfectionist

Version:

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

9 lines (8 loc) 281 B
import { TSESTree } from '@typescript-eslint/types' /** * Returns if a node is on a single line. * * @param node - The node to check. * @returns True if the node is on a single line, false otherwise. */ export declare function isNodeOnSingleLine(node: TSESTree.Node): boolean