Skip to content

Commit

Permalink
fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorHom committed Jun 6, 2017
1 parent c3e220f commit 54449a4
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions lib/ignored-paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,18 +175,22 @@ class IgnoredPaths {
addIgnoreFile(this.ig.custom, ignorePath);
addIgnoreFile(this.ig.default, ignorePath);
} else {
try {
// if the ignoreFile does not exist, check package.json for eslintIgnore
packageJSONPath = findPackageJSONFile(options.cwd)
if (packageJSONPath) {
const configOptions = config.load(packageJSONPath, configContext);
if (configOptions.eslintIgnore) {
const filesToIgnore = configOptions.eslintIgnore;
}
}
} catch (e) {
debug("Could not find eslintIgnore in package.json");
}
try {

// if the ignoreFile does not exist, check package.json for eslintIgnore
packageJSONPath = findPackageJSONFile(options.cwd);
if (packageJSONPath) {
const configOptions = config.load(packageJSONPath, configContext);

if (configOptions.eslintIgnore) {
const filesToIgnore = configOptions.eslintIgnore;

debug(filesToIgnore);
}
}
} catch (e) {
debug("Could not find eslintIgnore in package.json");
}
}

if (options.ignorePattern) {
Expand Down

0 comments on commit 54449a4

Please sign in to comment.