Skip to content

Commit 031d2b9

Browse files
authored
fix(eslint): filter options should follow createFilter parameter typing (#1140)
1 parent 8fadc64 commit 031d2b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/eslint/types/index.d.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Plugin } from 'rollup';
22
import { CLIEngine } from 'eslint';
3+
import { CreateFilter } from '@rollup/pluginutils';
34

45
export interface RollupEslintOptions extends CLIEngine.Options {
56
/**
@@ -24,13 +25,13 @@ export interface RollupEslintOptions extends CLIEngine.Options {
2425
* A single file, or array of files, to include when linting.
2526
* @default []
2627
*/
27-
include?: string[] | string;
28+
include?: Parameters<CreateFilter>[0];
2829

2930
/**
3031
* A single file, or array of files, to exclude when linting.
3132
* @default node_modules/**
3233
*/
33-
exclude?: string[] | string;
34+
exclude?: Parameters<CreateFilter>[1];
3435

3536
/**
3637
* Custom error formatter or the name of a built-in formatter.

0 commit comments

Comments
 (0)