Commit 35f6763 1 parent e638315 commit 35f6763 Copy full SHA for 35f6763
File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export async function typescript(
10
10
const {
11
11
componentExts = [ ] ,
12
12
overrides = { } ,
13
+ overridesTypeAware = { } ,
13
14
parserOptions = { } ,
14
15
type = 'app' ,
15
16
} = options
@@ -166,7 +167,10 @@ export async function typescript(
166
167
files : filesTypeAware ,
167
168
ignores : ignoresTypeAware ,
168
169
name : 'antfu/typescript/rules-type-aware' ,
169
- rules : typeAwareRules ,
170
+ rules : {
171
+ ...typeAwareRules ,
172
+ ...overridesTypeAware ,
173
+ } ,
170
174
} ]
171
175
: [ ] ,
172
176
{
Original file line number Diff line number Diff line change @@ -152,6 +152,11 @@ export interface OptionsTypeScriptWithTypes {
152
152
* @see https://typescript-eslint.io/linting/typed-linting/
153
153
*/
154
154
tsconfigPath ?: string
155
+
156
+ /**
157
+ * Override type aware rules.
158
+ */
159
+ overridesTypeAware ?: TypedFlatConfigItem [ 'rules' ]
155
160
}
156
161
157
162
export interface OptionsHasTypeScript {
You can’t perform that action at this time.
0 commit comments