Skip to content

Commit

Permalink
Linting and dependency updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Pratt committed Jan 15, 2020
1 parent 4e9b361 commit d4fc994
Show file tree
Hide file tree
Showing 4 changed files with 5,528 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ plugins:
- import

parserOptions:
ecmaVersion: 5
ecmaVersion: 2015

env:
node: true
browser: false
es6: false

rules:
no-console: off
func-names: off
max-len: off
no-confusing-arrow: off
object-shorthand: off
no-console: off
func-names: off
max-len: off
no-confusing-arrow: off
object-shorthand: off
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ CaseSensitivePathsPlugin.prototype.getFilenamesInDir = function (dir, callback)
return;
}

callback(files.map(f => f.normalize ? f.normalize('NFC') : f));
callback(files.map((f) => f.normalize ? f.normalize('NFC') : f));
});
};

Expand Down Expand Up @@ -152,8 +152,10 @@ CaseSensitivePathsPlugin.prototype.apply = function (compiler) {
} else {
done(new Error(`[CaseSensitivePathsPlugin] \`${pathName}\` does not match the corresponding path on disk ${realName}`));
}
} else if (data.createData) {
done(null);
} else {
if (data.createData) done(null); else done(null, data);
done(null, data);
}
});
};
Expand Down
Loading

0 comments on commit d4fc994

Please sign in to comment.