Skip to content

Commit

Permalink
Fix issue #720
Browse files Browse the repository at this point in the history
Simply prevent eslint to check any parent folder of current working
directory.
  • Loading branch information
laysent committed Jun 1, 2017
1 parent 28e1623 commit 5fd356d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ exports.fileExistsWithCaseSync = function fileExistsWithCaseSync(filepath, cache

// null means it resolved to a builtin
if (filepath === null) return true
if (filepath.toLowerCase() === process.cwd().toLowerCase()) return true
const parsedPath = path.parse(filepath)
, dir = parsedPath.dir

Expand Down

0 comments on commit 5fd356d

Please sign in to comment.