File tree 2 files changed +3
-1
lines changed
packages/plugin-eslint/src/lib/runner
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -86,9 +86,10 @@ describe('lint', () => {
86
86
87
87
it ( 'should correctly use ESLint Node API' , async ( ) => {
88
88
await lint ( '.eslintrc.js' , [ '**/*.js' ] ) ;
89
- expect ( ESLint ) . toHaveBeenCalledWith ( {
89
+ expect ( ESLint ) . toHaveBeenCalledWith < ConstructorParameters < typeof ESLint > > ( {
90
90
overrideConfigFile : '.eslintrc.js' ,
91
91
useEslintrc : false ,
92
+ errorOnUnmatchedPattern : false ,
92
93
} ) ;
93
94
expect ( eslint . lintFiles ) . toHaveBeenCalledTimes ( 1 ) ;
94
95
expect ( eslint . lintFiles ) . toHaveBeenCalledWith ( [ '**/*.js' ] ) ;
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export async function lint(
9
9
const eslint = new ESLint ( {
10
10
overrideConfigFile : eslintrc ,
11
11
useEslintrc : false ,
12
+ errorOnUnmatchedPattern : false ,
12
13
} ) ;
13
14
14
15
const lintResults = await eslint . lintFiles ( patterns ) ;
You can’t perform that action at this time.
0 commit comments