Skip to content

Commit d350187

Browse files
committed
fix(plugin-eslint): allow unmatched patterns
1 parent c8cfb6e commit d350187

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/plugin-eslint/src/lib/runner/lint.spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,10 @@ describe('lint', () => {
8686

8787
it('should correctly use ESLint Node API', async () => {
8888
await lint('.eslintrc.js', ['**/*.js']);
89-
expect(ESLint).toHaveBeenCalledWith({
89+
expect(ESLint).toHaveBeenCalledWith<ConstructorParameters<typeof ESLint>>({
9090
overrideConfigFile: '.eslintrc.js',
9191
useEslintrc: false,
92+
errorOnUnmatchedPattern: false,
9293
});
9394
expect(eslint.lintFiles).toHaveBeenCalledTimes(1);
9495
expect(eslint.lintFiles).toHaveBeenCalledWith(['**/*.js']);

packages/plugin-eslint/src/lib/runner/lint.ts

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export async function lint(
99
const eslint = new ESLint({
1010
overrideConfigFile: eslintrc,
1111
useEslintrc: false,
12+
errorOnUnmatchedPattern: false,
1213
});
1314

1415
const lintResults = await eslint.lintFiles(patterns);

0 commit comments

Comments
 (0)