mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
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:
@@ -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/']);
|
||||
|
||||
|
||||
Vendored
+1
@@ -509,6 +509,7 @@ export namespace CLIEngine {
|
||||
configFile?: string;
|
||||
cwd?: string;
|
||||
envs?: string[];
|
||||
errorOnUnmatchedPattern?: boolean;
|
||||
extensions?: string[];
|
||||
fix?: boolean;
|
||||
globals?: string[];
|
||||
|
||||
@@ -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/']);
|
||||
|
||||
|
||||
Vendored
+1
@@ -505,6 +505,7 @@ export namespace CLIEngine {
|
||||
configFile?: string;
|
||||
cwd?: string;
|
||||
envs?: string[];
|
||||
errorOnUnmatchedPattern?: boolean;
|
||||
extensions?: string[];
|
||||
fix?: boolean;
|
||||
globals?: string[];
|
||||
|
||||
Reference in New Issue
Block a user