Skip to content

Commit

Permalink
Update comments for no-extraneous-dependencies configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
knpwrs committed Aug 30, 2016
1 parent 505aea8 commit 2b9b500
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rules/no-extraneous-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ function reportIfMissing(context, deps, depsOptions, node, name) {
}

function testConfig(config, filename) {
// Simplest configuration first
// Simplest configuration first, either a boolean or nothing.
if (typeof config === 'boolean' || typeof config === 'undefined') {
return config
}
// Account for the possibility of an array for multiple configuration
// Array of globs.
return config.some(c => minimatch(filename, c))
}

Expand Down

0 comments on commit 2b9b500

Please sign in to comment.