-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathtypes.ts
26 lines (24 loc) · 1.02 KB
/
types.ts
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
import { ESLint } from 'eslint'
export { ESLint }
export type OutputFixes = typeof ESLint.outputFixes
/** Plugin options, extending from ESlint options */
export interface Options extends ESLint.Options {
/** Path to ESLint instance that will be used for linting */
eslintPath?: string
/** Check all matching files on project startup */
lintOnStart?: boolean
/** A single file, or array of files, to include when linting */
include?: string | string[]
/** A single file, or array of files, to exclude when linting */
exclude?: string | string[]
/** Custom error formatter or the name of a built-in formatter */
formatter?: string | ESLint.Formatter['format']
/** The warings found will be printed */
emitWarning?: boolean
/** The errors found will be printed */
emitError?: boolean
/** Will cause the module build to fail if there are any warnings, based on emitWarning */
failOnWarning?: boolean
/** Will cause the module build to fail if there are any errors, based on emitError */
failOnError?: boolean
}