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`|`object` or `function` or `array`|`undefined`| If `object`, defines issue properties that should be [matched](./src/issue/IssueMatch.ts). If `function`, acts as a predicate where `issue` is an argument. |
195
-
|`exclude`|`object` or `function` or `array`|`undefined`| Same as `include` but issues that match this predicate will be excluded. |
196
-
|`scope`|`'all'` or `'webpack'`|`'webpack'`| Defines issues scope to be reported. If `'webpack'`, reports errors only related to the webpack compilation. Reports all errors otherwise (like `tsc` and `eslint` command). |
193
+
```typescript
194
+
interfaceIssue {
195
+
origin:'typescript'|'eslint';
196
+
severity:'error'|'warning';
197
+
code:string;
198
+
file?:string;
199
+
}
200
+
201
+
typeIssueMatch=Partial<Issue>; // file field supports glob matching
|`include`|`IssueFilter`|`undefined`| If `object`, defines issue properties that should be [matched](./src/issue/IssueMatch.ts). If `function`, acts as a predicate where `issue` is an argument. |
209
+
|`exclude`|`IssueFilter`|`undefined`| Same as `include` but issues that match this predicate will be excluded. |
210
+
211
+
<details>
212
+
<summary>Expand example</summary>
213
+
214
+
Include issues from the `src` directory, exclude eslint issues from `.spec.ts` files:
0 commit comments