-
-
Notifications
You must be signed in to change notification settings - Fork 600
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,12 +27,15 @@ yarn add @rollup/plugin-eslint --dev | |
import eslint from '@rollup/plugin-eslint'; | ||
|
||
export default { | ||
input: 'main.js', | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
robinloeffel
Author
Member
|
||
input: 'src', | ||
plugins: [ | ||
eslint({ | ||
/* your options */ | ||
/* options */ | ||
}), | ||
], | ||
output: { | ||
/* ... */ | ||
}, | ||
}; | ||
``` | ||
|
||
|
@@ -60,23 +63,23 @@ Controls what type of files ESLint should look at. The default of `null` is equa | |
|
||
Type: `boolean`<br> | ||
Default: `false`<br> | ||
Utilized by: [The plugin itself](https://github.com/robinloeffel/rollup-plugin-eslint/blob/master/src/index.js#L34) | ||
Utilized by: [The plugin itself](src/index.ts#l40) | ||
|
||
Controls whether or not to throw an error and exit the process when ESLint reports any warnings. | ||
|
||
### `throwOnError` | ||
|
||
Type: `boolean`<br> | ||
Default: `false`<br> | ||
Utilized by: [The plugin itself](https://github.com/robinloeffel/rollup-plugin-eslint/blob/master/src/index.js#L38) | ||
Utilized by: [The plugin itself](src/index.ts#l46) | ||
|
||
Controls whether or not to throw an error and exit the process when ESLint reports any errors. | ||
|
||
### `formatter` | ||
|
||
Type: `string`<br> | ||
Default: `'stylish'`<br> | ||
Utilized by: [The plugin itself](https://github.com/robinloeffel/rollup-plugin-eslint/blob/master/src/index.js#L38) | ||
Utilized by: [The plugin itself](src/index.ts#l32) | ||
|
||
The name of a (built-in) formatter or the path to a custom formatter. | ||
|
||
|
🚨🚨🚨 Never commit directly to master. Contribs and maintainers must always go through PRs.