feat(eslint): add errorOnUnmatchedPattern to CLIEngine Options (#41889)

* feat(eslint): add errorOnUnmatchedPattern to CLIEngine Options

* test(eslint): add test for errorOnUnmatchedPattern option on CLIEngine for ts3.1
This commit is contained in:
Arthur Denner 2020-02-04 18:45:00 +01:00 committed by GitHub
parent f7eef53553
commit ff388a3fa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 0 deletions

View File

@ -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/']);

View File

@ -509,6 +509,7 @@ export namespace CLIEngine {
configFile?: string;
cwd?: string;
envs?: string[];
errorOnUnmatchedPattern?: boolean;
extensions?: string[];
fix?: boolean;
globals?: string[];

View File

@ -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/']);

View File

@ -505,6 +505,7 @@ export namespace CLIEngine {
configFile?: string;
cwd?: string;
envs?: string[];
errorOnUnmatchedPattern?: boolean;
extensions?: string[];
fix?: boolean;
globals?: string[];