We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a95e569 commit d5c8820Copy full SHA for d5c8820
src/LintDirtyModulesPlugin.js
@@ -1,5 +1,6 @@
1
import { isMatch } from 'micromatch';
2
3
+import getCLIEngine from './getCLIEngine';
4
import linter from './linter';
5
6
export default class LintDirtyModulesPlugin {
@@ -21,8 +22,12 @@ export default class LintDirtyModulesPlugin {
21
22
return;
23
}
24
25
+ const { cli } = getCLIEngine(this.options);
26
const dirtyOptions = { ...this.options };
- const glob = dirtyOptions.files.join('|').replace(/\\/g, '/');
27
+ const glob = cli
28
+ .resolveFileGlobPatterns(dirtyOptions.files)
29
+ .join('|')
30
+ .replace(/\\/g, '/');
31
const changedFiles = this.getChangedFiles(fileTimestamps, glob);
32
33
this.prevTimestamps = fileTimestamps;
0 commit comments