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. |
139
146
|`exclude`|`IssueFilter`|`undefined`| Same as `include` but issues that match this predicate will be excluded. |
140
147
141
-
<details>
142
-
<summary>Expand example</summary>
148
+
-**Example**:
143
149
144
150
Include issues from the `src` directory, exclude issues from `.spec.ts` files:
145
151
146
152
```js
147
-
module.exports= {
148
-
// ...the Rspack configuration
149
-
plugins: [
150
-
newTsCheckerRspackPlugin({
151
-
issue: {
152
-
include: [{ file:'**/src/**/*' }],
153
-
exclude: [{ file:'**/*.spec.ts' }],
154
-
},
155
-
}),
156
-
],
157
-
};
153
+
newTsCheckerRspackPlugin({
154
+
issue: {
155
+
include: [{ file:'**/src/**/*' }],
156
+
exclude: [{ file:'**/*.spec.ts' }],
157
+
},
158
+
});
158
159
```
159
160
160
-
</details>
161
+
Exclude files under `/node_modules/` using `file:`:
0 commit comments