We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fadc64 commit 031d2b9Copy full SHA for 031d2b9
packages/eslint/types/index.d.ts
@@ -1,5 +1,6 @@
1
import { Plugin } from 'rollup';
2
import { CLIEngine } from 'eslint';
3
+import { CreateFilter } from '@rollup/pluginutils';
4
5
export interface RollupEslintOptions extends CLIEngine.Options {
6
/**
@@ -24,13 +25,13 @@ export interface RollupEslintOptions extends CLIEngine.Options {
24
25
* A single file, or array of files, to include when linting.
26
* @default []
27
*/
- include?: string[] | string;
28
+ include?: Parameters<CreateFilter>[0];
29
30
31
* A single file, or array of files, to exclude when linting.
32
* @default node_modules/**
33
- exclude?: string[] | string;
34
+ exclude?: Parameters<CreateFilter>[1];
35
36
37
* Custom error formatter or the name of a built-in formatter.
0 commit comments