diff --git a/types/eslint/eslint-tests.ts b/types/eslint/eslint-tests.ts index c85f44bc3aacbc..283f67103ad91a 100644 --- a/types/eslint/eslint-tests.ts +++ b/types/eslint/eslint-tests.ts @@ -507,6 +507,7 @@ cli = new CLIEngine({ resolvePluginsRelativeTo: 'test' }); cli = new CLIEngine({ rules: { 'test/example-rule': 1 } }); cli = new CLIEngine({ rulePaths: ['foo'] }); cli = new CLIEngine({ reportUnusedDisableDirectives: true }); +cli = new CLIEngine({ errorOnUnmatchedPattern: false }); let cliReport = cli.executeOnFiles(['myfile.js', 'lib/']); diff --git a/types/eslint/index.d.ts b/types/eslint/index.d.ts index f7acd9f797a22c..f19ae6aa938d2a 100644 --- a/types/eslint/index.d.ts +++ b/types/eslint/index.d.ts @@ -509,6 +509,7 @@ export namespace CLIEngine { configFile?: string; cwd?: string; envs?: string[]; + errorOnUnmatchedPattern?: boolean; extensions?: string[]; fix?: boolean; globals?: string[]; diff --git a/types/eslint/ts3.1/eslint-tests.ts b/types/eslint/ts3.1/eslint-tests.ts index 1e9a6a03aab345..a283eca1af34ab 100644 --- a/types/eslint/ts3.1/eslint-tests.ts +++ b/types/eslint/ts3.1/eslint-tests.ts @@ -507,6 +507,7 @@ cli = new CLIEngine({ plugins: ['foo'] }); cli = new CLIEngine({ rules: { 'test/example-rule': 1 } }); cli = new CLIEngine({ rulePaths: ['foo'] }); cli = new CLIEngine({ reportUnusedDisableDirectives: true }); +cli = new CLIEngine({ errorOnUnmatchedPattern: false }); let cliReport = cli.executeOnFiles(['myfile.js', 'lib/']); diff --git a/types/eslint/ts3.1/index.d.ts b/types/eslint/ts3.1/index.d.ts index 1fdc7632ea22bd..ab598f8886b931 100644 --- a/types/eslint/ts3.1/index.d.ts +++ b/types/eslint/ts3.1/index.d.ts @@ -505,6 +505,7 @@ export namespace CLIEngine { configFile?: string; cwd?: string; envs?: string[]; + errorOnUnmatchedPattern?: boolean; extensions?: string[]; fix?: boolean; globals?: string[];