Skip to content

Commit

Permalink
Applied zertosh#21
Browse files Browse the repository at this point in the history
  • Loading branch information
lexpank committed Jan 10, 2020
1 parent 96d7027 commit e30465d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion no-cycles.js
Expand Up @@ -27,7 +27,20 @@ var eslintModule = (function() {
})();

var Traverser = eslintModule.require('./util/traverser');
var traverser = new Traverser();

function getTraverser() {
var traverser;
try {
traverser = eslintModule.require('./shared/traverser');
}
catch(e) {
traverser = eslintModule.require('./util/traverser');
}

return new traverser();
}

var traverser = getTraverser();

//------------------------------------------------------------------------------
// Utils
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-dependencies",
"version": "2.4.0",
"version": "2.4.1",
"description": "require/import dependency validation",
"keywords": [
"eslint",
Expand Down

0 comments on commit e30465d

Please sign in to comment.