Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
Fix: add Literal type to visitorKeys (#562)
Browse files Browse the repository at this point in the history
* Fix: add Literal type to visitorKeys
* Fix: use ./visitor-keys
  • Loading branch information
mysticatea committed Dec 26, 2017
1 parent bf9092a commit 5aaf0e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions lib/parse-with-scope.js
@@ -1,13 +1,12 @@
"use strict";

const t = require("@babel/types");
const visitorKeys = require("./visitor-keys");
const analyzeScope = require("./analyze-scope");
const parse = require("./parse");

module.exports = function(code, options) {
const ast = parse(code, options);
const scopeManager = analyzeScope(ast, options);
const visitorKeys = t.VISITOR_KEYS;

return { ast, scopeManager, visitorKeys };
};
1 change: 1 addition & 0 deletions lib/visitor-keys.js
Expand Up @@ -5,6 +5,7 @@ const ESLINT_VISITOR_KEYS = require("eslint-visitor-keys").KEYS;

module.exports = Object.assign(
{
Literal: ESLINT_VISITOR_KEYS.Literal,
MethodDefinition: ["decorators"].concat(
ESLINT_VISITOR_KEYS.MethodDefinition
),
Expand Down

0 comments on commit 5aaf0e1

Please sign in to comment.