-
-
Notifications
You must be signed in to change notification settings - Fork 628
Expand file tree
/
Copy pathindex.d.ts
More file actions
executable file
·47 lines (40 loc) · 1.17 KB
/
index.d.ts
File metadata and controls
executable file
·47 lines (40 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import type { Plugin } from 'rollup';
import type { ESLint } from 'eslint';
import type { CreateFilter } from '@rollup/pluginutils';
export interface RollupEslintOptions extends ESLint.Options {
/**
* If true, will auto fix source code.
* @default false
*/
fix?: boolean;
/**
* If true, will throw an error if any errors were found.
* @default false
*/
throwOnError?: boolean;
/**
* If true, will throw an error if any warnings were found.
* @default false
*/
throwOnWarning?: boolean;
/**
* A single file, or array of files, to include when linting.
* @default []
*/
include?: Parameters<CreateFilter>[0];
/**
* A single file, or array of files, to exclude when linting.
* @default node_modules/**
*/
exclude?: Parameters<CreateFilter>[1];
/**
* Custom error formatter or the name of a built-in formatter.
* @default stylish
*/
formatter?: Awaited<ReturnType<ESLint['loadFormatter']>>['format'] | string;
}
/**
* 🍣 A Rollup plugin for verifing entry points and all imported files with ESLint.
*/
declare function eslint(options?: RollupEslintOptions | string): Plugin;
export { eslint, eslint as default };