Skip to content

Commit

Permalink
Use inline eslint-disable comment
Browse files Browse the repository at this point in the history
  • Loading branch information
le0nik committed May 17, 2016
1 parent 2323ef1 commit 0cad4e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,7 @@ function requireResolver(name, modulePath) {
try {
// Try to resolve package with custom name (@myorg/resolver-name)
return require(name)
/* eslint-disable no-shadow */
} catch (err) {
/* eslint-enable no-shadow */
} catch (err) { // eslint-disable-line no-shadow

// Try to resolve package with conventional name
return require(`eslint-import-resolver-${name}`)
Expand Down

0 comments on commit 0cad4e7

Please sign in to comment.