mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-04 07:52:51 +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:
parent
f7eef53553
commit
ff388a3fa3
@ -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/']);
|
||||
|
||||
|
||||
1
types/eslint/index.d.ts
vendored
1
types/eslint/index.d.ts
vendored
@ -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/']);
|
||||
|
||||
|
||||
1
types/eslint/ts3.1/index.d.ts
vendored
1
types/eslint/ts3.1/index.d.ts
vendored
@ -505,6 +505,7 @@ export namespace CLIEngine {
|
||||
configFile?: string;
|
||||
cwd?: string;
|
||||
envs?: string[];
|
||||
errorOnUnmatchedPattern?: boolean;
|
||||
extensions?: string[];
|
||||
fix?: boolean;
|
||||
globals?: string[];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user