File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,8 @@ const rootConfigurationSchema = z.object({
61
61
} ) ;
62
62
63
63
const reportConfigSchema = z . object ( {
64
- include : z . array ( z . string ( ) ) . optional ( ) ,
65
- exclude : z . array ( z . string ( ) ) . optional ( ) ,
64
+ include : z . array ( issueTypeSchema ) . optional ( ) ,
65
+ exclude : z . array ( issueTypeSchema ) . optional ( ) ,
66
66
} ) ;
67
67
68
68
export const pluginSchema = z . union ( [
Original file line number Diff line number Diff line change 1
1
import { z } from 'zod' ;
2
2
import { ConfigurationValidator , pluginSchema } from '../ConfigurationValidator.js' ;
3
3
import * as Plugins from '../plugins/index.js' ;
4
- import type { Rules } from './issues.js' ;
4
+ import type { Rules , IssueType } from './issues.js' ;
5
5
import type { SyncCompilers , AsyncCompilers } from '../compilers/types.js' ;
6
6
7
7
export type RawConfiguration = z . infer < typeof ConfigurationValidator > ;
@@ -40,8 +40,8 @@ type IgnorableExport = 'class' | 'enum' | 'function' | 'interface' | 'member' |
40
40
41
41
export interface Configuration {
42
42
rules : Rules ;
43
- include : string [ ] ;
44
- exclude : string [ ] ;
43
+ include : IssueType [ ] ;
44
+ exclude : IssueType [ ] ;
45
45
ignore : NormalizedGlob ;
46
46
ignoreBinaries : IgnorePatterns ;
47
47
ignoreDependencies : IgnorePatterns ;
You can’t perform that action at this time.
0 commit comments