How to use the eslint-visitor-keys.KEYS.Literal function in eslint-visitor-keys

To help you get started, we’ve selected a few eslint-visitor-keys examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github babel / babel / eslint / babel-eslint-parser / src / visitor-keys.js View on Github external
import { types as t } from "@babel/core";
import { KEYS as ESLINT_VISITOR_KEYS } from "eslint-visitor-keys";

const { VISITOR_KEYS: BABEL_VISITOR_KEYS } = t;

export default Object.assign(
  {
    Literal: ESLINT_VISITOR_KEYS.Literal,
    MethodDefinition: ["decorators"].concat(
      ESLINT_VISITOR_KEYS.MethodDefinition,
    ),
    Property: ["decorators"].concat(ESLINT_VISITOR_KEYS.Property),
  },
  BABEL_VISITOR_KEYS,
);

eslint-visitor-keys

Constants and utilities about visitor keys to traverse AST.

BSD-2-Clause
Latest version published 19 days ago

Package Health Score

91 / 100
Full package analysis

Similar packages