mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add eslint CLIEngine resolvePluginsRelativeTo constructor option (#39335)
* Add the resolvePluginsRelativeTo option The documentation at https://eslint.org/docs/developer-guide/nodejs-api#cliengine shows this option * Add for later versions of TypeScript, and tests
This commit is contained in:
parent
98a24059fc
commit
86ffa58e94
@ -492,6 +492,7 @@ cli = new CLIEngine({ ignorePattern: ['foo', 'bar'] });
|
||||
cli = new CLIEngine({ useEslintrc: false });
|
||||
cli = new CLIEngine({ parserOptions: {} });
|
||||
cli = new CLIEngine({ plugins: ['foo'] });
|
||||
cli = new CLIEngine({ resolvePluginsRelativeTo: 'test' });
|
||||
cli = new CLIEngine({ rules: { 'test/example-rule': 1 } });
|
||||
cli = new CLIEngine({ rulePaths: ['foo'] });
|
||||
cli = new CLIEngine({ reportUnusedDisableDirectives: true });
|
||||
|
||||
1
types/eslint/index.d.ts
vendored
1
types/eslint/index.d.ts
vendored
@ -519,6 +519,7 @@ export namespace CLIEngine {
|
||||
parser?: string;
|
||||
parserOptions?: Linter.ParserOptions;
|
||||
plugins?: string[];
|
||||
resolvePluginsRelativeTo?: string;
|
||||
rules?: {
|
||||
[name: string]: Linter.RuleLevel | Linter.RuleLevelAndOptions;
|
||||
};
|
||||
|
||||
@ -491,6 +491,7 @@ cli = new CLIEngine({ ignorePattern: 'foo' });
|
||||
cli = new CLIEngine({ ignorePattern: ['foo', 'bar'] });
|
||||
cli = new CLIEngine({ useEslintrc: false });
|
||||
cli = new CLIEngine({ parserOptions: {} });
|
||||
cli = new CLIEngine({ resolvePluginsRelativeTo: 'test' });
|
||||
cli = new CLIEngine({ plugins: ['foo'] });
|
||||
cli = new CLIEngine({ rules: { 'test/example-rule': 1 } });
|
||||
cli = new CLIEngine({ rulePaths: ['foo'] });
|
||||
|
||||
1
types/eslint/ts3.1/index.d.ts
vendored
1
types/eslint/ts3.1/index.d.ts
vendored
@ -515,6 +515,7 @@ export namespace CLIEngine {
|
||||
parser?: string;
|
||||
parserOptions?: Linter.ParserOptions;
|
||||
plugins?: string[];
|
||||
resolvePluginsRelativeTo?: string;
|
||||
rules?: {
|
||||
[name: string]: Linter.RuleLevel | Linter.RuleLevelAndOptions;
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user