fork-ts-checker-webpack-plugin 7.0.0-alpha.1 → 7.0.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/README.md +17 -83
  2. package/lib/ForkTsCheckerWebpackPlugin.d.ts +15 -11
  3. package/lib/ForkTsCheckerWebpackPlugin.js +30 -38
  4. package/lib/ForkTsCheckerWebpackPluginConfiguration.d.ts +6 -8
  5. package/lib/ForkTsCheckerWebpackPluginConfiguration.js +3 -4
  6. package/lib/ForkTsCheckerWebpackPluginOptions.d.ts +4 -6
  7. package/lib/ForkTsCheckerWebpackPluginOptions.json +73 -111
  8. package/lib/ForkTsCheckerWebpackPluginState.d.ts +8 -7
  9. package/lib/ForkTsCheckerWebpackPluginState.js +3 -1
  10. package/lib/error/OperationCanceledError.js +1 -0
  11. package/lib/formatter/BasicFormatter.d.ts +1 -1
  12. package/lib/formatter/BasicFormatter.js +1 -0
  13. package/lib/formatter/CodeFrameFormatter.d.ts +1 -1
  14. package/lib/formatter/CodeFrameFormatter.js +2 -1
  15. package/lib/formatter/Formatter.d.ts +1 -1
  16. package/lib/formatter/FormatterConfiguration.d.ts +3 -3
  17. package/lib/formatter/FormatterConfiguration.js +21 -2
  18. package/lib/formatter/FormatterOptions.d.ts +11 -6
  19. package/lib/formatter/WebpackFormatter.d.ts +1 -1
  20. package/lib/formatter/WebpackFormatter.js +6 -6
  21. package/lib/formatter/index.d.ts +0 -1
  22. package/lib/formatter/index.js +16 -8
  23. package/lib/formatter/types/babel__code-frame.js +1 -1
  24. package/lib/hooks/interceptDoneToGetWebpackDevServerTap.d.ts +3 -3
  25. package/lib/hooks/interceptDoneToGetWebpackDevServerTap.js +1 -0
  26. package/lib/hooks/pluginHooks.d.ts +13 -13
  27. package/lib/hooks/pluginHooks.js +1 -0
  28. package/lib/hooks/pluginPools.d.ts +4 -0
  29. package/lib/hooks/pluginPools.js +28 -0
  30. package/lib/hooks/tapAfterCompileToAddDependencies.d.ts +3 -3
  31. package/lib/hooks/tapAfterCompileToAddDependencies.js +1 -0
  32. package/lib/hooks/tapAfterCompileToGetIssues.d.ts +3 -3
  33. package/lib/hooks/tapAfterCompileToGetIssues.js +2 -1
  34. package/lib/hooks/tapAfterEnvironmentToPatchWatching.d.ts +2 -2
  35. package/lib/hooks/tapAfterEnvironmentToPatchWatching.js +4 -1
  36. package/lib/hooks/tapDoneToAsyncGetIssues.d.ts +3 -3
  37. package/lib/hooks/tapDoneToAsyncGetIssues.js +6 -5
  38. package/lib/hooks/tapErrorToLogMessage.d.ts +2 -2
  39. package/lib/hooks/tapErrorToLogMessage.js +4 -3
  40. package/lib/hooks/tapStartToConnectAndRunReporter.d.ts +5 -5
  41. package/lib/hooks/tapStartToConnectAndRunReporter.js +47 -22
  42. package/lib/hooks/tapStopToDisconnectReporter.d.ts +4 -4
  43. package/lib/hooks/tapStopToDisconnectReporter.js +7 -4
  44. package/lib/issue/Issue.d.ts +2 -3
  45. package/lib/issue/Issue.js +2 -3
  46. package/lib/issue/IssueConfiguration.d.ts +3 -3
  47. package/lib/issue/IssueConfiguration.js +1 -0
  48. package/lib/issue/IssueLocation.d.ts +2 -2
  49. package/lib/issue/IssueLocation.js +17 -2
  50. package/lib/issue/IssueMatch.d.ts +3 -3
  51. package/lib/issue/IssueMatch.js +3 -3
  52. package/lib/issue/IssueOptions.d.ts +2 -2
  53. package/lib/issue/IssuePosition.js +1 -0
  54. package/lib/issue/IssuePredicate.d.ts +1 -1
  55. package/lib/issue/IssuePredicate.js +1 -0
  56. package/lib/issue/IssueSeverity.js +1 -0
  57. package/lib/issue/IssueWebpackError.d.ts +3 -3
  58. package/lib/issue/IssueWebpackError.js +7 -5
  59. package/lib/issue/index.js +13 -6
  60. package/lib/logger/LoggerConfiguration.d.ts +3 -3
  61. package/lib/logger/LoggerConfiguration.js +2 -1
  62. package/lib/logger/LoggerFactory.d.ts +2 -2
  63. package/lib/logger/LoggerFactory.js +2 -1
  64. package/lib/logger/LoggerOptions.d.ts +2 -2
  65. package/lib/logger/PartialLogger.d.ts +1 -1
  66. package/lib/logger/PartialLogger.js +1 -0
  67. package/lib/logger/WebpackInfrastructureLogger.d.ts +2 -2
  68. package/lib/logger/WebpackInfrastructureLogger.js +1 -0
  69. package/lib/profile/Performance.js +1 -0
  70. package/lib/reporter/AggregatedReporter.d.ts +1 -1
  71. package/lib/reporter/AggregatedReporter.js +2 -1
  72. package/lib/reporter/FilesChange.d.ts +1 -1
  73. package/lib/reporter/FilesChange.js +2 -1
  74. package/lib/reporter/FilesMatch.d.ts +7 -0
  75. package/lib/{eslint-reporter/EsLintReporterOptions.js → reporter/FilesMatch.js} +0 -0
  76. package/lib/reporter/Report.d.ts +3 -3
  77. package/lib/reporter/Reporter.d.ts +2 -2
  78. package/lib/reporter/index.d.ts +1 -1
  79. package/lib/reporter/index.js +17 -7
  80. package/lib/reporter/reporter-rpc/ReporterRpcClient.d.ts +2 -2
  81. package/lib/reporter/reporter-rpc/ReporterRpcClient.js +17 -4
  82. package/lib/reporter/reporter-rpc/ReporterRpcProcedure.d.ts +5 -5
  83. package/lib/reporter/reporter-rpc/ReporterRpcProcedure.js +3 -0
  84. package/lib/reporter/reporter-rpc/ReporterRpcService.d.ts +2 -2
  85. package/lib/reporter/reporter-rpc/ReporterRpcService.js +3 -0
  86. package/lib/rpc/RpcClient.d.ts +2 -2
  87. package/lib/rpc/RpcClient.js +2 -1
  88. package/lib/rpc/RpcMessage.d.ts +1 -1
  89. package/lib/rpc/RpcMessage.js +3 -0
  90. package/lib/rpc/RpcMessageChannel.d.ts +1 -1
  91. package/lib/rpc/RpcMessageChannel.js +1 -0
  92. package/lib/rpc/RpcService.d.ts +2 -2
  93. package/lib/rpc/RpcService.js +1 -0
  94. package/lib/rpc/error/RpcMessagePortClosedError.js +1 -0
  95. package/lib/rpc/error/RpcRemoteError.js +1 -0
  96. package/lib/rpc/index.js +17 -7
  97. package/lib/rpc/rpc-ipc/RpcIpcMessageChannel.d.ts +1 -1
  98. package/lib/rpc/rpc-ipc/RpcIpcMessageChannel.js +1 -0
  99. package/lib/rpc/rpc-ipc/RpcIpcMessagePort.d.ts +2 -2
  100. package/lib/rpc/rpc-ipc/RpcIpcMessagePort.js +1 -0
  101. package/lib/rpc/rpc-ipc/error/RpcIpcMessagePortClosedError.js +1 -0
  102. package/lib/rpc/rpc-ipc/index.js +12 -5
  103. package/lib/typescript-reporter/TypeScriptConfigurationOverwrite.d.ts +1 -1
  104. package/lib/typescript-reporter/TypeScriptReporterConfiguration.d.ts +5 -5
  105. package/lib/typescript-reporter/TypeScriptReporterConfiguration.js +2 -0
  106. package/lib/typescript-reporter/TypeScriptReporterOptions.d.ts +4 -5
  107. package/lib/typescript-reporter/TypeScriptSupport.d.ts +1 -1
  108. package/lib/typescript-reporter/TypeScriptSupport.js +26 -11
  109. package/lib/typescript-reporter/extension/TypeScriptEmbeddedExtension.d.ts +1 -1
  110. package/lib/typescript-reporter/extension/TypeScriptEmbeddedExtension.js +2 -1
  111. package/lib/typescript-reporter/extension/TypeScriptExtension.d.ts +4 -4
  112. package/lib/typescript-reporter/extension/vue/TypeScriptVueExtension.d.ts +2 -2
  113. package/lib/typescript-reporter/extension/vue/TypeScriptVueExtension.js +2 -1
  114. package/lib/typescript-reporter/extension/vue/TypeScriptVueExtensionConfiguration.d.ts +1 -1
  115. package/lib/typescript-reporter/extension/vue/TypeScriptVueExtensionConfiguration.js +1 -0
  116. package/lib/typescript-reporter/extension/vue/TypeScriptVueExtensionSupport.d.ts +1 -1
  117. package/lib/typescript-reporter/extension/vue/TypeScriptVueExtensionSupport.js +1 -0
  118. package/lib/typescript-reporter/file-system/FileSystem.d.ts +1 -1
  119. package/lib/typescript-reporter/file-system/MemFileSystem.d.ts +8 -0
  120. package/lib/typescript-reporter/file-system/MemFileSystem.js +83 -0
  121. package/lib/typescript-reporter/file-system/PassiveFileSystem.d.ts +3 -3
  122. package/lib/typescript-reporter/file-system/PassiveFileSystem.js +11 -72
  123. package/lib/typescript-reporter/file-system/RealFileSystem.d.ts +1 -1
  124. package/lib/typescript-reporter/file-system/RealFileSystem.js +2 -0
  125. package/lib/typescript-reporter/issue/TypeScriptIssueFactory.d.ts +2 -2
  126. package/lib/typescript-reporter/issue/TypeScriptIssueFactory.js +17 -5
  127. package/lib/typescript-reporter/profile/TypeScriptPerformance.d.ts +2 -2
  128. package/lib/typescript-reporter/profile/TypeScriptPerformance.js +1 -0
  129. package/lib/typescript-reporter/reporter/ControlledCompilerHost.d.ts +3 -3
  130. package/lib/typescript-reporter/reporter/ControlledCompilerHost.js +1 -0
  131. package/lib/typescript-reporter/reporter/ControlledTypeScriptSystem.d.ts +3 -1
  132. package/lib/typescript-reporter/reporter/ControlledTypeScriptSystem.js +50 -15
  133. package/lib/typescript-reporter/reporter/ControlledWatchCompilerHost.d.ts +3 -3
  134. package/lib/typescript-reporter/reporter/ControlledWatchCompilerHost.js +1 -0
  135. package/lib/typescript-reporter/reporter/ControlledWatchSolutionBuilderHost.d.ts +3 -3
  136. package/lib/typescript-reporter/reporter/ControlledWatchSolutionBuilderHost.js +2 -9
  137. package/lib/typescript-reporter/reporter/TypeScriptConfigurationParser.d.ts +7 -5
  138. package/lib/typescript-reporter/reporter/TypeScriptConfigurationParser.js +114 -19
  139. package/lib/typescript-reporter/reporter/TypeScriptReporter.d.ts +2 -2
  140. package/lib/typescript-reporter/reporter/TypeScriptReporter.js +24 -16
  141. package/lib/typescript-reporter/reporter/TypeScriptReporterRpcClient.d.ts +2 -2
  142. package/lib/typescript-reporter/reporter/TypeScriptReporterRpcClient.js +1 -0
  143. package/lib/typescript-reporter/reporter/TypeScriptReporterRpcService.js +2 -2
  144. package/lib/utils/async/pool.d.ts +1 -0
  145. package/lib/utils/async/pool.js +10 -0
  146. package/lib/utils/path/relativeToContext.d.ts +2 -0
  147. package/lib/utils/path/relativeToContext.js +16 -0
  148. package/lib/watch/InclusiveNodeWatchFileSystem.d.ts +5 -5
  149. package/lib/watch/InclusiveNodeWatchFileSystem.js +111 -90
  150. package/lib/watch/WatchFileSystem.d.ts +5 -22
  151. package/package.json +52 -54
  152. package/CHANGELOG.md +0 -318
  153. package/changelog.config.js +0 -36
  154. package/lib/eslint-reporter/EsLintReporterConfiguration.d.ts +0 -11
  155. package/lib/eslint-reporter/EsLintReporterConfiguration.js +0 -26
  156. package/lib/eslint-reporter/EsLintReporterOptions.d.ts +0 -8
  157. package/lib/eslint-reporter/assertEsLintSupport.d.ts +0 -3
  158. package/lib/eslint-reporter/assertEsLintSupport.js +0 -30
  159. package/lib/eslint-reporter/issue/EsLintIssueFactory.d.ts +0 -4
  160. package/lib/eslint-reporter/issue/EsLintIssueFactory.js +0 -32
  161. package/lib/eslint-reporter/reporter/EsLintReporter.d.ts +0 -4
  162. package/lib/eslint-reporter/reporter/EsLintReporter.js +0 -85
  163. package/lib/eslint-reporter/reporter/EsLintReporterRpcClient.d.ts +0 -4
  164. package/lib/eslint-reporter/reporter/EsLintReporterRpcClient.js +0 -13
  165. package/lib/eslint-reporter/reporter/EsLintReporterRpcService.d.ts +0 -1
  166. package/lib/eslint-reporter/reporter/EsLintReporterRpcService.js +0 -11
  167. package/lib/eslint-reporter/types/eslint.d.ts +0 -31
  168. package/lib/eslint-reporter/types/eslint.js +0 -2
  169. package/lib/formatter/FormatterFactory.d.ts +0 -13
  170. package/lib/formatter/FormatterFactory.js +0 -17
  171. package/lib/reporter/Dependencies.d.ts +0 -6
  172. package/lib/reporter/Dependencies.js +0 -2
  173. package/lib/watch/CompilerWithWatchFileSystem.d.ts +0 -6
  174. package/lib/watch/CompilerWithWatchFileSystem.js +0 -2
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  <p>Webpack plugin that runs TypeScript type checker on a separate process.</p>
5
5
 
6
6
  [![npm version](https://img.shields.io/npm/v/fork-ts-checker-webpack-plugin.svg)](https://www.npmjs.com/package/fork-ts-checker-webpack-plugin)
7
- [![build status](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/workflows/CI/CD/badge.svg?branch=master&event=push)](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/actions?query=branch%3Amaster+event%3Apush)
7
+ [![build status](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/workflows/CI/CD/badge.svg?branch=main&event=push)](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/actions?query=branch%3Amain+event%3Apush)
8
8
  [![downloads](http://img.shields.io/npm/dm/fork-ts-checker-webpack-plugin.svg)](https://npmjs.org/package/fork-ts-checker-webpack-plugin)
9
9
  [![commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
10
10
  [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
@@ -14,17 +14,18 @@
14
14
 
15
15
  ## Features
16
16
 
17
- * Speeds up [TypeScript](https://github.com/Microsoft/TypeScript) type checking and [ESLint](https://eslint.org/) linting (by moving each to a separate process) 🏎
17
+ * Speeds up [TypeScript](https://github.com/Microsoft/TypeScript) type checking (by moving it to a separate process) 🏎
18
18
  * Supports modern TypeScript features like [project references](https://www.typescriptlang.org/docs/handbook/project-references.html) and [incremental mode](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-4.html#faster-subsequent-builds-with-the---incremental-flag) ✨
19
19
  * Supports [Vue Single File Component](https://vuejs.org/v2/guide/single-file-components.html) ✅ 
20
20
  * Displays nice error messages with the [code frame](https://babeljs.io/docs/en/next/babel-code-frame.html) formatter 🌈
21
21
 
22
22
  ## Installation
23
23
 
24
- This plugin requires minimum **Node.js 10**, **Webpack 4**, **TypeScript 2.7** and optionally **ESLint 6**
24
+ This plugin requires **Node.js >=12.13.0+**, **Webpack ^5.11.0**, **TypeScript ^3.6.0**
25
+
26
+ * If you depend on **TypeScript 2.1 - 2.6.2**, please use [version 4](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/tree/v4.1.4) of the plugin.
27
+ * If you depend on **Webpack 4**, **TypeScript 2.7 - 3.5.3** or **ESLint** feature, please use [version 6](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/tree/v6.2.6) of the plugin.
25
28
 
26
- * If you depend on **Webpack 2**, **Webpack 3**, or **TSLint 4**, please use [version 3](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/tree/v3.1.1) of the plugin.
27
- * If you depend on **TypeScript >= 2.1** and **< 2.7** or you can't update to **Node 10**, please use [version 4](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/tree/v4.1.4) of the plugin.
28
29
  ```sh
29
30
  # with npm
30
31
  npm install --save-dev fork-ts-checker-webpack-plugin
@@ -62,71 +63,18 @@ module.exports = {
62
63
  };
63
64
  ```
64
65
 
65
- > Examples how to configure it with [babel-loader](https://github.com/babel/babel-loader), [ts-loader](https://github.com/TypeStrong/ts-loader),
66
- > [eslint](https://github.com/eslint/eslint) and [Visual Studio Code](https://code.visualstudio.com/) are in the
67
- > [**examples**](./examples) directory.
66
+ > Examples how to configure it with [babel-loader](https://github.com/babel/babel-loader), [ts-loader](https://github.com/TypeStrong/ts-loader)
67
+ > and [Visual Studio Code](https://code.visualstudio.com/) are in the [**examples**](./examples) directory.
68
68
 
69
69
  ## Modules resolution
70
70
 
71
71
  It's very important to be aware that **this plugin uses [TypeScript](https://github.com/Microsoft/TypeScript)'s, not
72
72
  [webpack](https://github.com/webpack/webpack)'s modules resolution**. It means that you have to setup `tsconfig.json` correctly.
73
- For example if you set `files: ['./src/index.ts']` in `tsconfig.json`, this plugin will check only `index.ts` for errors.
74
73
 
75
74
  > It's because of the performance - with TypeScript's module resolution we don't have to wait for webpack to compile files.
76
75
  >
77
76
  > To debug TypeScript's modules resolution, you can use `tsc --traceResolution` command.
78
77
 
79
- ## ESLint
80
-
81
- If you'd like to use ESLint with the plugin, ensure you have the relevant dependencies installed:
82
-
83
- ```sh
84
- # with npm
85
- npm install --save-dev eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin
86
-
87
- # with yarn
88
- yarn add --dev eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin
89
- ```
90
-
91
- Then set up ESLint in the plugin. This is the minimal configuration:
92
- ```js
93
- // webpack.config.js
94
- const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
95
-
96
- module.exports = {
97
- // ...the webpack configuration
98
- plugins: [
99
- new ForkTsCheckerWebpackPlugin({
100
- eslint: {
101
- files: './src/**/*.{ts,tsx,js,jsx}' // required - same as command `eslint ./src/**/*.{ts,tsx,js,jsx} --ext .ts,.tsx,.js,.jsx`
102
- }
103
- })
104
- ]
105
- };
106
- ```
107
-
108
- You should also have an ESLint configuration file in your root project directory.
109
- Here is a sample `.eslintrc.js` configuration for a TypeScript project:
110
-
111
- ```js
112
- module.exports = {
113
- parser: '@typescript-eslint/parser',
114
- parserOptions: {
115
- ecmaVersion: 2018,
116
- sourceType: 'module',
117
- },
118
- extends: [
119
- 'plugin:@typescript-eslint/recommended'
120
- ],
121
- rules: {
122
- // place to specify ESLint rules - can be used to overwrite rules specified from the extended configs
123
- // e.g. "@typescript-eslint/explicit-function-return-type": "off",
124
- }
125
- };
126
- ```
127
-
128
- There's a [good explanation on setting up TypeScript ESLint support by Robert Cooper](https://dev.to/robertcoopercode/using-eslint-and-prettier-in-a-typescript-project-53jb).
129
-
130
78
  ## Options
131
79
 
132
80
  This plugin uses [`cosmiconfig`](https://github.com/davidtheclark/cosmiconfig). This means that besides the plugin constructor,
@@ -137,14 +85,13 @@ you can place your configuration in the:
137
85
 
138
86
  Options passed to the plugin constructor will overwrite options from the cosmiconfig (using [deepmerge](https://github.com/TehShrike/deepmerge)).
139
87
 
140
- | Name | Type | Default value | Description |
141
- | ----------------- | --------------------- | ------------------------------------------------------------------ | ----------- |
142
- | `async` | `boolean` | `compiler.options.mode === 'development'` | If `true`, reports issues **after** webpack's compilation is done. Thanks to that it doesn't block the compilation. Used only in the `watch` mode. |
143
- | `typescript` | `object` or `boolean` | `true` | If a `boolean`, it enables/disables TypeScript checker. If an `object`, see [TypeScript options](#typescript-options). |
144
- | `eslint` | `object` | `undefined` | If `undefined`, it disables ESLint linter. If an `object`, see [ESLint options](#eslint-options). |
145
- | `issue` | `object` | `{}` | See [Issues options](#issues-options). |
146
- | `formatter` | `string` or `object` | `codeframe` | Available formatters are `basic` and `codeframe`. To [configure](https://babeljs.io/docs/en/babel-code-frame#options) `codeframe` formatter, pass object: `{ type: 'codeframe', options: { <coderame options> } }`. |
147
- | `logger` | `object` | `{ infrastructure: 'silent', issues: 'console', devServer: true }` | Available loggers are `silent`, `console`, and `webpack-infrastructure`. Infrastructure logger prints additional information, issue logger prints `issues` in the `async` mode. If `devServer` is set to `false`, errors will not be reported to Webpack Dev Server. |
88
+ | Name | Type | Default value | Description |
89
+ | ----------------- | ---------------------------------- | ------------------------------------------------------------------ | ----------- |
90
+ | `async` | `boolean` | `compiler.options.mode === 'development'` | If `true`, reports issues **after** webpack's compilation is done. Thanks to that it doesn't block the compilation. Used only in the `watch` mode. |
91
+ | `typescript` | `object` | `{}` | See [TypeScript options](#typescript-options). |
92
+ | `issue` | `object` | `{}` | See [Issues options](#issues-options). |
93
+ | `formatter` | `string` or `object` or `function` | `codeframe` | Available formatters are `basic`, `codeframe` and a custom `function`. To [configure](https://babeljs.io/docs/en/babel-code-frame#options) `codeframe` formatter, pass object: `{ type: 'codeframe', options: { <coderame options> } }`. |
94
+ | `logger` | `object` | `{ infrastructure: 'silent', issues: 'console', devServer: true }` | Available loggers are `silent`, `console`, and `webpack-infrastructure`. Infrastructure logger prints additional information, issue logger prints `issues` in the `async` mode. If `devServer` is set to `false`, errors will not be reported to Webpack Dev Server. |
148
95
 
149
96
  ### TypeScript options
150
97
 
@@ -152,7 +99,6 @@ Options for the TypeScript checker (`typescript` option object).
152
99
 
153
100
  | Name | Type | Default value | Description |
154
101
  | -------------------- | --------- | -------------------------------------------------------------------------------------------------------------- | ----------- |
155
- | `enabled` | `boolean` | `true` | If `true`, it enables TypeScript checker. |
156
102
  | `memoryLimit` | `number` | `2048` | Memory limit for the checker process in MB. If the process exits with the allocation failed error, try to increase this number. |
157
103
  | `configFile` | `string` | `'tsconfig.json'` | Path to the `tsconfig.json` file (path relative to the `compiler.options.context` or absolute path) |
158
104
  | `configOverwrite` | `object` | `{ compilerOptions: { skipLibCheck: true, sourceMap: false, inlineSourceMap: false, declarationMap: false } }` | This configuration will overwrite configuration from the `tsconfig.json` file. Supported fields are: `extends`, `compilerOptions`, `include`, `exclude`, `files`, and `references`. |
@@ -174,17 +120,6 @@ Options for the TypeScript checker extensions (`typescript.extensions` option ob
174
120
  | `vue.enabled` | `boolean` | `false` | Same as the `vue` option |
175
121
  | `vue.compiler` | `string` | `'vue-template-compiler'` | The package name of the compiler that will be used to parse `.vue` files. You can use `'nativescript-vue-template-compiler'` if you use [nativescript-vue](https://github.com/nativescript-vue/nativescript-vue) |
176
122
 
177
- ### ESLint options
178
-
179
- Options for the ESLint linter (`eslint` option object).
180
-
181
- | Name | Type | Default value | Description |
182
- | -------------------- | ---------------------- | ------------------------- | ----------- |
183
- | `enabled` | `boolean` | `false` | If `true`, it enables ESLint linter. If you set the `files` option, it will be `true` by default. |
184
- | `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. |
185
- | `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. |
186
- | `options` | `object` | `{}` | [Options](https://eslint.org/docs/developer-guide/nodejs-api#cliengine) that can be used to initialize ESLint. |
187
-
188
123
  ### Issues options
189
124
 
190
125
  Options for the issues filtering (`issue` option object).
@@ -192,7 +127,6 @@ I could write some plain text explanation of these options but I think code will
192
127
 
193
128
  ```typescript
194
129
  interface Issue {
195
- origin: 'typescript' | 'eslint';
196
130
  severity: 'error' | 'warning';
197
131
  code: string;
198
132
  file?: string;
@@ -211,7 +145,7 @@ type IssueFilter = IssueMatch | IssuePredicate | (IssueMatch | IssuePredicate)[]
211
145
  <details>
212
146
  <summary>Expand example</summary>
213
147
 
214
- Include issues from the `src` directory, exclude eslint issues from `.spec.ts` files:
148
+ Include issues from the `src` directory, exclude issues from `.spec.ts` files:
215
149
 
216
150
  ```js
217
151
  module.exports = {
@@ -223,7 +157,7 @@ module.exports = {
223
157
  { file: '**/src/**/*' }
224
158
  ],
225
159
  exclude: [
226
- { origin: 'eslint', file: '**/*.spec.ts' }
160
+ { file: '**/*.spec.ts' }
227
161
  ]
228
162
  }
229
163
  })
@@ -1,23 +1,27 @@
1
- import webpack from 'webpack';
2
- import { ForkTsCheckerWebpackPluginOptions } from './ForkTsCheckerWebpackPluginOptions';
3
- import { Pool } from './utils/async/pool';
4
- declare class ForkTsCheckerWebpackPlugin implements webpack.Plugin {
1
+ import type webpack from 'webpack';
2
+ import type { ForkTsCheckerWebpackPluginOptions } from './ForkTsCheckerWebpackPluginOptions';
3
+ declare class ForkTsCheckerWebpackPlugin {
5
4
  /**
6
5
  * Current version of the plugin
7
6
  */
8
7
  static readonly version: string;
9
8
  /**
10
- * Default pool for the plugin concurrency limit
9
+ * Default pools for the plugin concurrency limit
11
10
  */
12
- static readonly pool: Pool;
11
+ static readonly issuesPool: import("./utils/async/pool").Pool;
12
+ static readonly dependenciesPool: import("./utils/async/pool").Pool;
13
+ /**
14
+ * @deprecated Use ForkTsCheckerWebpackPlugin.issuesPool instead
15
+ */
16
+ static readonly pool: import("./utils/async/pool").Pool;
13
17
  private readonly options;
14
18
  constructor(options?: ForkTsCheckerWebpackPluginOptions);
15
19
  static getCompilerHooks(compiler: webpack.Compiler): {
16
- start: import("tapable").AsyncSeriesWaterfallHook<import("./reporter/FilesChange").FilesChange, webpack.compilation.Compilation, any>;
17
- waiting: import("tapable").SyncHook<webpack.compilation.Compilation, any, any>;
18
- canceled: import("tapable").SyncHook<webpack.compilation.Compilation, any, any>;
19
- error: import("tapable").SyncHook<Error, webpack.compilation.Compilation, any>;
20
- issues: import("tapable").SyncWaterfallHook<import("./issue/Issue").Issue[], webpack.compilation.Compilation | undefined, void>;
20
+ start: import("tapable").AsyncSeriesWaterfallHook<[import("./reporter/FilesChange").FilesChange, webpack.Compilation], import("tapable").UnsetAdditionalOptions>;
21
+ waiting: import("tapable").SyncHook<[webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
22
+ canceled: import("tapable").SyncHook<[webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
23
+ error: import("tapable").SyncHook<[Error, webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
24
+ issues: import("tapable").SyncWaterfallHook<[import("./issue/Issue").Issue[], webpack.Compilation | undefined], void>;
21
25
  };
22
26
  apply(compiler: webpack.Compiler): void;
23
27
  }
@@ -3,35 +3,34 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const schema_utils_1 = __importDefault(require("schema-utils"));
6
+ exports.ForkTsCheckerWebpackPlugin = void 0;
7
7
  const cosmiconfig_1 = require("cosmiconfig");
8
8
  const deepmerge_1 = __importDefault(require("deepmerge"));
9
- const ForkTsCheckerWebpackPluginOptions_json_1 = __importDefault(require("./ForkTsCheckerWebpackPluginOptions.json"));
9
+ const schema_utils_1 = require("schema-utils");
10
+ // type only dependency
11
+ // eslint-disable-next-line node/no-extraneous-import
10
12
  const ForkTsCheckerWebpackPluginConfiguration_1 = require("./ForkTsCheckerWebpackPluginConfiguration");
13
+ const ForkTsCheckerWebpackPluginOptions_json_1 = __importDefault(require("./ForkTsCheckerWebpackPluginOptions.json"));
11
14
  const ForkTsCheckerWebpackPluginState_1 = require("./ForkTsCheckerWebpackPluginState");
12
- const reporter_1 = require("./reporter");
13
- const TypeScriptSupport_1 = require("./typescript-reporter/TypeScriptSupport");
14
- const TypeScriptReporterRpcClient_1 = require("./typescript-reporter/reporter/TypeScriptReporterRpcClient");
15
- const assertEsLintSupport_1 = require("./eslint-reporter/assertEsLintSupport");
16
- const EsLintReporterRpcClient_1 = require("./eslint-reporter/reporter/EsLintReporterRpcClient");
17
- const tapStartToConnectAndRunReporter_1 = require("./hooks/tapStartToConnectAndRunReporter");
18
- const tapStopToDisconnectReporter_1 = require("./hooks/tapStopToDisconnectReporter");
19
- const tapAfterCompileToAddDependencies_1 = require("./hooks/tapAfterCompileToAddDependencies");
20
- const tapErrorToLogMessage_1 = require("./hooks/tapErrorToLogMessage");
21
15
  const pluginHooks_1 = require("./hooks/pluginHooks");
16
+ const pluginPools_1 = require("./hooks/pluginPools");
17
+ const tapAfterCompileToAddDependencies_1 = require("./hooks/tapAfterCompileToAddDependencies");
22
18
  const tapAfterEnvironmentToPatchWatching_1 = require("./hooks/tapAfterEnvironmentToPatchWatching");
23
- const pool_1 = require("./utils/async/pool");
24
- const os_1 = __importDefault(require("os"));
19
+ const tapErrorToLogMessage_1 = require("./hooks/tapErrorToLogMessage");
20
+ const tapStartToConnectAndRunReporter_1 = require("./hooks/tapStartToConnectAndRunReporter");
21
+ const tapStopToDisconnectReporter_1 = require("./hooks/tapStopToDisconnectReporter");
22
+ const TypeScriptReporterRpcClient_1 = require("./typescript-reporter/reporter/TypeScriptReporterRpcClient");
23
+ const TypeScriptSupport_1 = require("./typescript-reporter/TypeScriptSupport");
25
24
  class ForkTsCheckerWebpackPlugin {
26
25
  constructor(options = {}) {
27
26
  const explorerSync = cosmiconfig_1.cosmiconfigSync('fork-ts-checker');
28
27
  const { config: externalOptions } = explorerSync.search() || {};
29
28
  // first validate options directly passed to the constructor
30
29
  const configuration = { name: 'ForkTsCheckerWebpackPlugin' };
31
- schema_utils_1.default(ForkTsCheckerWebpackPluginOptions_json_1.default, options, configuration);
30
+ schema_utils_1.validate(ForkTsCheckerWebpackPluginOptions_json_1.default, options, configuration);
32
31
  this.options = deepmerge_1.default(externalOptions || {}, options || {});
33
32
  // then validate merged options
34
- schema_utils_1.default(ForkTsCheckerWebpackPluginOptions_json_1.default, this.options, configuration);
33
+ schema_utils_1.validate(ForkTsCheckerWebpackPluginOptions_json_1.default, this.options, configuration);
35
34
  }
36
35
  static getCompilerHooks(compiler) {
37
36
  return pluginHooks_1.getForkTsCheckerWebpackPluginHooks(compiler);
@@ -39,34 +38,27 @@ class ForkTsCheckerWebpackPlugin {
39
38
  apply(compiler) {
40
39
  const configuration = ForkTsCheckerWebpackPluginConfiguration_1.createForkTsCheckerWebpackPluginConfiguration(compiler, this.options);
41
40
  const state = ForkTsCheckerWebpackPluginState_1.createForkTsCheckerWebpackPluginState();
42
- const reporters = [];
43
- if (configuration.typescript.enabled) {
44
- TypeScriptSupport_1.assertTypeScriptSupport(configuration.typescript);
45
- reporters.push(TypeScriptReporterRpcClient_1.createTypeScriptReporterRpcClient(configuration.typescript));
46
- }
47
- if (configuration.eslint.enabled) {
48
- assertEsLintSupport_1.assertEsLintSupport(configuration.eslint);
49
- reporters.push(EsLintReporterRpcClient_1.createEsLintReporterRpcClient(configuration.eslint));
50
- }
51
- if (reporters.length) {
52
- const reporter = reporter_1.createAggregatedReporter(reporter_1.composeReporterRpcClients(reporters));
53
- tapAfterEnvironmentToPatchWatching_1.tapAfterEnvironmentToPatchWatching(compiler, state);
54
- tapStartToConnectAndRunReporter_1.tapStartToConnectAndRunReporter(compiler, reporter, configuration, state);
55
- tapAfterCompileToAddDependencies_1.tapAfterCompileToAddDependencies(compiler, configuration, state);
56
- tapStopToDisconnectReporter_1.tapStopToDisconnectReporter(compiler, reporter, state);
57
- tapErrorToLogMessage_1.tapErrorToLogMessage(compiler, configuration);
58
- }
59
- else {
60
- throw new Error(`ForkTsCheckerWebpackPlugin is configured to not use any issue reporter. It's probably a configuration issue.`);
61
- }
41
+ TypeScriptSupport_1.assertTypeScriptSupport(configuration.typescript);
42
+ const issuesReporter = TypeScriptReporterRpcClient_1.createTypeScriptReporterRpcClient(configuration.typescript);
43
+ const dependenciesReporter = TypeScriptReporterRpcClient_1.createTypeScriptReporterRpcClient(configuration.typescript);
44
+ tapAfterEnvironmentToPatchWatching_1.tapAfterEnvironmentToPatchWatching(compiler, state);
45
+ tapStartToConnectAndRunReporter_1.tapStartToConnectAndRunReporter(compiler, issuesReporter, dependenciesReporter, configuration, state);
46
+ tapAfterCompileToAddDependencies_1.tapAfterCompileToAddDependencies(compiler, configuration, state);
47
+ tapStopToDisconnectReporter_1.tapStopToDisconnectReporter(compiler, issuesReporter, dependenciesReporter, state);
48
+ tapErrorToLogMessage_1.tapErrorToLogMessage(compiler, configuration);
62
49
  }
63
50
  }
64
51
  exports.ForkTsCheckerWebpackPlugin = ForkTsCheckerWebpackPlugin;
65
52
  /**
66
53
  * Current version of the plugin
67
54
  */
68
- ForkTsCheckerWebpackPlugin.version = '7.0.0-alpha.1'; // will be replaced by the @semantic-release/exec
55
+ ForkTsCheckerWebpackPlugin.version = '7.0.0-alpha.10'; // will be replaced by the @semantic-release/exec
56
+ /**
57
+ * Default pools for the plugin concurrency limit
58
+ */
59
+ ForkTsCheckerWebpackPlugin.issuesPool = pluginPools_1.issuesPool;
60
+ ForkTsCheckerWebpackPlugin.dependenciesPool = pluginPools_1.dependenciesPool;
69
61
  /**
70
- * Default pool for the plugin concurrency limit
62
+ * @deprecated Use ForkTsCheckerWebpackPlugin.issuesPool instead
71
63
  */
72
- ForkTsCheckerWebpackPlugin.pool = pool_1.createPool(Math.max(1, os_1.default.cpus().length));
64
+ ForkTsCheckerWebpackPlugin.pool = pluginPools_1.issuesPool;
@@ -1,14 +1,12 @@
1
- import webpack from 'webpack';
2
- import { ForkTsCheckerWebpackPluginOptions } from './ForkTsCheckerWebpackPluginOptions';
3
- import { IssueConfiguration } from './issue/IssueConfiguration';
4
- import { FormatterConfiguration } from './formatter';
5
- import { TypeScriptReporterConfiguration } from './typescript-reporter/TypeScriptReporterConfiguration';
6
- import { EsLintReporterConfiguration } from './eslint-reporter/EsLintReporterConfiguration';
7
- import { LoggerConfiguration } from './logger/LoggerConfiguration';
1
+ import type webpack from 'webpack';
2
+ import type { ForkTsCheckerWebpackPluginOptions } from './ForkTsCheckerWebpackPluginOptions';
3
+ import type { FormatterConfiguration } from './formatter';
4
+ import type { IssueConfiguration } from './issue/IssueConfiguration';
5
+ import type { LoggerConfiguration } from './logger/LoggerConfiguration';
6
+ import type { TypeScriptReporterConfiguration } from './typescript-reporter/TypeScriptReporterConfiguration';
8
7
  interface ForkTsCheckerWebpackPluginConfiguration {
9
8
  async: boolean;
10
9
  typescript: TypeScriptReporterConfiguration;
11
- eslint: EsLintReporterConfiguration;
12
10
  issue: IssueConfiguration;
13
11
  formatter: FormatterConfiguration;
14
12
  logger: LoggerConfiguration;
@@ -1,15 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const IssueConfiguration_1 = require("./issue/IssueConfiguration");
3
+ exports.createForkTsCheckerWebpackPluginConfiguration = void 0;
4
4
  const formatter_1 = require("./formatter");
5
- const TypeScriptReporterConfiguration_1 = require("./typescript-reporter/TypeScriptReporterConfiguration");
6
- const EsLintReporterConfiguration_1 = require("./eslint-reporter/EsLintReporterConfiguration");
5
+ const IssueConfiguration_1 = require("./issue/IssueConfiguration");
7
6
  const LoggerConfiguration_1 = require("./logger/LoggerConfiguration");
7
+ const TypeScriptReporterConfiguration_1 = require("./typescript-reporter/TypeScriptReporterConfiguration");
8
8
  function createForkTsCheckerWebpackPluginConfiguration(compiler, options = {}) {
9
9
  return {
10
10
  async: options.async === undefined ? compiler.options.mode === 'development' : options.async,
11
11
  typescript: TypeScriptReporterConfiguration_1.createTypeScriptReporterConfiguration(compiler, options.typescript),
12
- eslint: EsLintReporterConfiguration_1.createEsLintReporterConfiguration(compiler, options.eslint),
13
12
  issue: IssueConfiguration_1.createIssueConfiguration(compiler, options.issue),
14
13
  formatter: formatter_1.createFormatterConfiguration(options.formatter),
15
14
  logger: LoggerConfiguration_1.createLoggerConfiguration(compiler, options.logger),
@@ -1,12 +1,10 @@
1
- import { TypeScriptReporterOptions } from './typescript-reporter/TypeScriptReporterOptions';
2
- import { EsLintReporterOptions } from './eslint-reporter/EsLintReporterOptions';
3
- import { IssueOptions } from './issue/IssueOptions';
4
- import { FormatterOptions } from './formatter';
5
- import LoggerOptions from './logger/LoggerOptions';
1
+ import type { FormatterOptions } from './formatter';
2
+ import type { IssueOptions } from './issue/IssueOptions';
3
+ import type LoggerOptions from './logger/LoggerOptions';
4
+ import type { TypeScriptReporterOptions } from './typescript-reporter/TypeScriptReporterOptions';
6
5
  interface ForkTsCheckerWebpackPluginOptions {
7
6
  async?: boolean;
8
7
  typescript?: TypeScriptReporterOptions;
9
- eslint?: EsLintReporterOptions;
10
8
  formatter?: FormatterOptions;
11
9
  issue?: IssueOptions;
12
10
  logger?: LoggerOptions;
@@ -9,9 +9,6 @@
9
9
  "typescript": {
10
10
  "$ref": "#/definitions/TypeScriptReporterOptions"
11
11
  },
12
- "eslint": {
13
- "$ref": "#/definitions/EsLintReporterOptions"
14
- },
15
12
  "formatter": {
16
13
  "$ref": "#/definitions/FormatterOptions"
17
14
  },
@@ -38,22 +35,26 @@
38
35
  "additionalProperties": true
39
36
  }
40
37
  },
41
- "required": ["type"]
38
+ "required": [
39
+ "type"
40
+ ]
42
41
  },
43
42
  "FormatterType": {
44
43
  "type": "string",
45
- "enum": ["basic", "codeframe"]
44
+ "enum": [
45
+ "basic",
46
+ "codeframe"
47
+ ]
46
48
  },
47
49
  "IssueMatch": {
48
50
  "type": "object",
49
51
  "properties": {
50
- "origin": {
51
- "type": "string",
52
- "enum": ["typescript", "eslint"]
53
- },
54
52
  "severity": {
55
53
  "type": "string",
56
- "enum": ["error", "warning"]
54
+ "enum": [
55
+ "error",
56
+ "warning"
57
+ ]
57
58
  },
58
59
  "code": {
59
60
  "type": "string"
@@ -91,7 +92,11 @@
91
92
  },
92
93
  "LoggerType": {
93
94
  "type": "string",
94
- "enum": ["console", "webpack-infrastructure", "silent"]
95
+ "enum": [
96
+ "console",
97
+ "webpack-infrastructure",
98
+ "silent"
99
+ ]
95
100
  },
96
101
  "Logger": {
97
102
  "type": "object",
@@ -108,81 +113,73 @@
108
113
  }
109
114
  },
110
115
  "TypeScriptReporterOptions": {
111
- "oneOf": [
112
- {
116
+ "type": "object",
117
+ "properties": {
118
+ "memoryLimit": {
119
+ "type": "number",
120
+ "description": "Memory limit for TypeScript reporter process."
121
+ },
122
+ "configFile": {
123
+ "type": "string",
124
+ "description": "Path to tsconfig.json. By default plugin uses context or process.cwd() to localize tsconfig.json file."
125
+ },
126
+ "context": {
127
+ "type": "string",
128
+ "description": "The base path for finding files specified in the tsconfig.json. Same as context option from the ts-loader."
129
+ },
130
+ "build": {
113
131
  "type": "boolean",
114
- "description": "Enable TypeScript reporter."
132
+ "description": "The equivalent of the `--build` flag from the `tsc`."
115
133
  },
116
- {
134
+ "mode": {
135
+ "type": "string",
136
+ "enum": [
137
+ "readonly",
138
+ "write-tsbuildinfo",
139
+ "write-references"
140
+ ],
141
+ "description": "`readonly` keeps all emitted files in memory, `write-tsbuildinfo` which writes only .tsbuildinfo files and `write-references` which writes both .tsbuildinfo and referenced projects output"
142
+ },
143
+ "compilerOptions": {
117
144
  "type": "object",
145
+ "description": "Custom compilerOptions to be passed to the TypeScript compiler.",
146
+ "additionalProperties": true
147
+ },
148
+ "diagnosticOptions": {
149
+ "type": "object",
150
+ "description": "Types of diagnostics to be reported.",
118
151
  "properties": {
119
- "enabled": {
120
- "type": "boolean",
121
- "description": "Enable TypeScript reporter."
122
- },
123
- "memoryLimit": {
124
- "type": "number",
125
- "description": "Memory limit for TypeScript reporter process."
126
- },
127
- "configFile": {
128
- "type": "string",
129
- "description": "Path to tsconfig.json. By default plugin uses context or process.cwd() to localize tsconfig.json file."
130
- },
131
- "context": {
132
- "type": "string",
133
- "description": "The base path for finding files specified in the tsconfig.json. Same as context option from the ts-loader."
134
- },
135
- "build": {
136
- "type": "boolean",
137
- "description": "The equivalent of the `--build` flag from the `tsc`."
138
- },
139
- "mode": {
140
- "type": "string",
141
- "enum": ["readonly", "write-tsbuildinfo", "write-references"],
142
- "description": "`readonly` keeps all emitted files in memory, `write-tsbuildinfo` which writes only .tsbuildinfo files and `write-references` which writes both .tsbuildinfo and referenced projects output"
143
- },
144
- "compilerOptions": {
145
- "type": "object",
146
- "description": "Custom compilerOptions to be passed to the TypeScript compiler.",
147
- "additionalProperties": true
152
+ "syntactic": {
153
+ "type": "boolean"
148
154
  },
149
- "diagnosticOptions": {
150
- "type": "object",
151
- "description": "Types of diagnostics to be reported.",
152
- "properties": {
153
- "syntactic": {
154
- "type": "boolean"
155
- },
156
- "semantic": {
157
- "type": "boolean"
158
- },
159
- "declaration": {
160
- "type": "boolean"
161
- },
162
- "global": {
163
- "type": "boolean"
164
- }
165
- }
155
+ "semantic": {
156
+ "type": "boolean"
166
157
  },
167
- "extensions": {
168
- "type": "object",
169
- "properties": {
170
- "vue": {
171
- "$ref": "#/definitions/TypeScriptVueExtensionOptions"
172
- }
173
- }
158
+ "declaration": {
159
+ "type": "boolean"
174
160
  },
175
- "profile": {
176
- "type": "boolean",
177
- "description": "Measures and prints timings related to the TypeScript performance."
178
- },
179
- "typescriptPath": {
180
- "type": "string",
181
- "description": "If supplied this is a custom path where TypeScript can be found."
161
+ "global": {
162
+ "type": "boolean"
163
+ }
164
+ }
165
+ },
166
+ "extensions": {
167
+ "type": "object",
168
+ "properties": {
169
+ "vue": {
170
+ "$ref": "#/definitions/TypeScriptVueExtensionOptions"
182
171
  }
183
172
  }
173
+ },
174
+ "profile": {
175
+ "type": "boolean",
176
+ "description": "Measures and prints timings related to the TypeScript performance."
177
+ },
178
+ "typescriptPath": {
179
+ "type": "string",
180
+ "description": "If supplied this is a custom path where TypeScript can be found."
184
181
  }
185
- ]
182
+ }
186
183
  },
187
184
  "TypeScriptVueExtensionOptions": {
188
185
  "oneOf": [
@@ -205,41 +202,6 @@
205
202
  }
206
203
  ]
207
204
  },
208
- "EsLintReporterOptions": {
209
- "type": "object",
210
- "properties": {
211
- "files": {
212
- "oneOf": [
213
- {
214
- "type": "array",
215
- "items": {
216
- "type": "string"
217
- },
218
- "minItems": 1,
219
- "uniqueItems": true
220
- },
221
- {
222
- "type": "string"
223
- }
224
- ],
225
- "description": "List of glob patterns or files to be linted."
226
- },
227
- "enabled": {
228
- "type": "boolean",
229
- "description": "Enable EsLint reporter."
230
- },
231
- "memoryLimit": {
232
- "type": "number",
233
- "description": "Memory limit for EsLint reporter process."
234
- },
235
- "options": {
236
- "type": "object",
237
- "description": "Custom options to be passed to the EsLint engine.",
238
- "additionalProperties": true
239
- }
240
- },
241
- "required": ["files"]
242
- },
243
205
  "FormatterOptions": {
244
206
  "oneOf": [
245
207
  {