@@ -42,11 +42,11 @@ export type ProjectOptions = {
42
42
rootDir ?: string
43
43
}
44
44
45
- let projectOptions : ProjectOptions = {
46
- tsSyntaxInTemplates : true ,
47
- scriptLangs : [ 'ts' ] ,
45
+ let projectOptions = {
46
+ tsSyntaxInTemplates : true as boolean ,
47
+ scriptLangs : [ 'ts' ] as ScriptLang [ ] ,
48
48
rootDir : process . cwd ( ) ,
49
- }
49
+ } satisfies ProjectOptions
50
50
51
51
// This function, if called, is guaranteed to be executed before `defineConfigWithVueTs`,
52
52
// so mutating the `projectOptions` object is safe and will be reflected in the final ESLint config.
@@ -115,7 +115,7 @@ function insertAndReorderConfigs(
115
115
return configs
116
116
}
117
117
118
- const vueFiles = groupVueFiles ( projectOptions . rootDir ! )
118
+ const vueFiles = groupVueFiles ( projectOptions . rootDir )
119
119
const configsWithoutTypeAwareRules = configs . map ( extractTypeAwareRules )
120
120
121
121
const hasTypeAwareConfigs = configs . some (
@@ -127,7 +127,7 @@ function insertAndReorderConfigs(
127
127
128
128
return [
129
129
...configsWithoutTypeAwareRules . slice ( 0 , lastExtendedConfigIndex + 1 ) ,
130
- ...createBasicSetupConfigs ( projectOptions . tsSyntaxInTemplates ! , projectOptions . scriptLangs ! ) ,
130
+ ...createBasicSetupConfigs ( projectOptions . tsSyntaxInTemplates , projectOptions . scriptLangs ) ,
131
131
132
132
// user-turned-off type-aware rules must come after the last extended config
133
133
// in case some rules re-enabled by the extended config
0 commit comments