eslint-visitor-keys
- Version 4.0.0
- Published
- 32.3 kB
- No dependencies
- Apache-2.0 license
Install
npm i eslint-visitor-keys
yarn add eslint-visitor-keys
pnpm add eslint-visitor-keys
Overview
Constants and utilities about visitor keys to traverse AST.
Index
Variables
variable KEYS
const KEYS: VisitorKeys;
{VisitorKeys}
Functions
function getKeys
getKeys: (node: object) => readonly string[];
Get visitor keys of a given node.
Parameter node
The AST node to get keys.
Returns
{readonly string[]} Visitor keys of the node.
function unionWith
unionWith: (additionalKeys: VisitorKeys) => VisitorKeys;
Make the union set with
KEYS
and given keys.Parameter additionalKeys
The additional keys.
Returns
{VisitorKeys} The union set.
Type Aliases
type VisitorKeys
type VisitorKeys = import('./visitor-keys.js').VisitorKeys;
Package Files (2)
Dependencies (0)
No dependencies.
Dev Dependencies (18)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/eslint-visitor-keys
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/eslint-visitor-keys)
- HTML<a href="https://www.jsdocs.io/package/eslint-visitor-keys"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2191 ms. - Missing or incorrect documentation? Open an issue for this package.