You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: change start hook to AsyncSeriesWaterfallHook (#425)
Adds possibility to delay the start of the plugin by tapping into the
start hook.
BREAKING CHANGE: 🧨 start hook changed from SyncWaterfallHook to AsyncSeriesWaterfallHook
✅ Closes: #424
|`enabled`|`boolean`|`true`| If `true`, it enables ESLint linter. |
181
+
|`enabled`|`boolean`|`false`| If `true`, it enables ESLint linter. |
182
182
|`files`|`string` or `string[]`| This value is required | One or more [glob patterns](https://en.wikipedia.org/wiki/Glob_(programming)) to the files that should be linted. Works the same as the `eslint` command. |
183
183
|`memoryLimit`|`number`|`2048`| Memory limit for the linter process in MB. If the process exits with the allocation failed error, try to increase this number. |
184
184
|`options`|`object`|`{}`|[Options](https://eslint.org/docs/developer-guide/nodejs-api#cliengine) that can be used to initialize ESLint. |
@@ -316,13 +316,13 @@ If you use **TypeScript >=3.8.0**, you can fix it by passing `"importsNotUsedAsV
|`start`|`SyncWaterfallHook`|`change, compilation`| Starts issues checking for a compilation. It's a waterfall hook, so you can modify the list of changed and removed files. |
322
-
|`waiting`|`SyncHook`|`compilation`| Waiting for the issues checking. |
323
-
|`canceled`|`SyncHook`|`compilation`| Issues checking for the compilation has been canceled. |
324
-
|`error`|`SyncHook`|`compilation`| An error occurred during issues checking. |
325
-
|`issues`|`SyncWaterfallHook`|`issues, compilation`| Issues have been received and will be reported. It's a waterfall hook, so you can modify the list of received issues. |
|`start`|`AsyncSeriesWaterfallHook`|`change, compilation`| Starts issues checking for a compilation. It's an async waterfall hook, so you can modify the list of changed and removed files or delay the start of the service. |
322
+
|`waiting`|`SyncHook`|`compilation`| Waiting for the issues checking. |
323
+
|`canceled`|`SyncHook`|`compilation`| Issues checking for the compilation has been canceled. |
324
+
|`error`|`SyncHook`|`compilation`| An error occurred during issues checking. |
325
+
|`issues`|`SyncWaterfallHook`|`issues, compilation`| Issues have been received and will be reported. It's a waterfall hook, so you can modify the list of received issues. |
326
326
327
327
To access plugin hooks and tap into the event, we need to use the `getCompilerHooks` static method.
328
328
When we call this method with a [webpack compiler instance](https://webpack.js.org/api/node/), it returns the object with
0 commit comments