Skip to content

Commit

Permalink
fix(no-allow-react-context): use dot option
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Sep 8, 2016
1 parent b9c2039 commit 6ee6e38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rules/no-allow-react-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ module.exports = function(context) {
}
// if match except pattern, then ignore this file
if (options && filePath && Array.isArray(options.except)) {
const isIgnoredFile = minimatchAll(filePath, options.except);
const isIgnoredFile = minimatchAll(filePath, options.except, {
dot: true
});
if (isIgnoredFile) {
return {};
}
Expand Down

0 comments on commit 6ee6e38

Please sign in to comment.