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
|`include`|`IssueFilter`|`undefined`| If `object`, defines issue properties that should be [matched](src/issue/issue-match.ts). If `function`, acts as a predicate where `issue` is an argument. |
146
-
|`exclude`|`IssueFilter`|`undefined`| Same as `include` but issues that match this predicate will be excluded. |
|`include`|`IssueFilter`|`undefined`| If `object`, defines issue properties that should be [matched](src/issue/issue-match.ts). If `function`, acts as a predicate where `issue` is an argument. |
147
+
|`exclude`|`IssueFilter`|`undefined`| Same as `include` but issues that match this predicate will be excluded. |
148
+
|`defaultSeverity`|`'auto' \| 'warning' \| 'error'`|`'auto'`| Controls how the plugin assigns the severity of emitted issues. |
149
+
150
+
`defaultSeverity` behavior:
151
+
152
+
-`auto`: Uses the default mapping based on the TypeScript diagnostic category (`Error` → `error`, `Warning` → `warning`).
153
+
-`warning`: Forces all issues to be emitted as warnings.
154
+
-`error`: Forces all issues to be emitted as errors.
147
155
148
156
-**Example**:
149
157
@@ -168,6 +176,16 @@ new TsCheckerRspackPlugin({
168
176
});
169
177
```
170
178
179
+
Force all issues to be emitted as warnings and do not break the build:
0 commit comments