visitor-keys.js 415 B

12345678910111213141516
  1. "use strict";
  2. const BABEL_VISITOR_KEYS = require("@babel/types").VISITOR_KEYS;
  3. const ESLINT_VISITOR_KEYS = require("eslint-visitor-keys").KEYS;
  4. module.exports = Object.assign(
  5. {
  6. Literal: ESLINT_VISITOR_KEYS.Literal,
  7. MethodDefinition: ["decorators"].concat(
  8. ESLINT_VISITOR_KEYS.MethodDefinition
  9. ),
  10. Property: ["decorators"].concat(ESLINT_VISITOR_KEYS.Property),
  11. },
  12. BABEL_VISITOR_KEYS
  13. );