Skip to content

Commit

Permalink
Update: VisitorKeys depend on eslint-visitor-keys (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
othree authored and mysticatea committed Oct 8, 2018
1 parent 6bf2ebf commit 560b6f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 143 deletions.
20 changes: 1 addition & 19 deletions espree.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,23 +634,5 @@ exports.Syntax = (function() {

/* istanbul ignore next */
exports.VisitorKeys = (function() {
var visitorKeys = require("./lib/visitor-keys");
var name,
keys = {};

if (typeof Object.create === "function") {
keys = Object.create(null);
}

for (name in visitorKeys) {
if (visitorKeys.hasOwnProperty(name)) {
keys[name] = visitorKeys[name];
}
}

if (typeof Object.freeze === "function") {
Object.freeze(keys);
}

return keys;
return require("eslint-visitor-keys").KEYS;
}());
123 changes: 0 additions & 123 deletions lib/visitor-keys.js

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"license": "BSD-2-Clause",
"dependencies": {
"acorn": "^5.6.0",
"acorn-jsx": "^4.1.1"
"acorn-jsx": "^4.1.1",
"eslint-visitor-keys": "^1.0.0"
},
"devDependencies": {
"browserify": "^7.0.0",
Expand Down

0 comments on commit 560b6f7

Please sign in to comment.