eslint-visitor-keys

  • Version 3.3.0
  • Published
  • 31.1 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

Functions

Type Aliases

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 = {
readonly [type: string]: readonly string[];
};

    Package Files (2)

    Dependencies (0)

    No dependencies.

    Dev Dependencies (11)

    Peer Dependencies (0)

    No peer dependencies.

    Badge

    To add a badge like this onejsDocs.io badgeto 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>