@@ -42,11 +42,11 @@ export type ProjectOptions = {
4242 rootDir ?: string
4343}
4444
45- let projectOptions : ProjectOptions = {
46- tsSyntaxInTemplates : true ,
47- scriptLangs : [ 'ts' ] ,
45+ let projectOptions = {
46+ tsSyntaxInTemplates : true as boolean ,
47+ scriptLangs : [ 'ts' ] as ScriptLang [ ] ,
4848 rootDir : process . cwd ( ) ,
49- }
49+ } satisfies ProjectOptions
5050
5151// This function, if called, is guaranteed to be executed before `defineConfigWithVueTs`,
5252// so mutating the `projectOptions` object is safe and will be reflected in the final ESLint config.
@@ -115,7 +115,7 @@ function insertAndReorderConfigs(
115115 return configs
116116 }
117117
118- const vueFiles = groupVueFiles ( projectOptions . rootDir ! )
118+ const vueFiles = groupVueFiles ( projectOptions . rootDir )
119119 const configsWithoutTypeAwareRules = configs . map ( extractTypeAwareRules )
120120
121121 const hasTypeAwareConfigs = configs . some (
@@ -127,7 +127,7 @@ function insertAndReorderConfigs(
127127
128128 return [
129129 ...configsWithoutTypeAwareRules . slice ( 0 , lastExtendedConfigIndex + 1 ) ,
130- ...createBasicSetupConfigs ( projectOptions . tsSyntaxInTemplates ! , projectOptions . scriptLangs ! ) ,
130+ ...createBasicSetupConfigs ( projectOptions . tsSyntaxInTemplates , projectOptions . scriptLangs ) ,
131131
132132 // user-turned-off type-aware rules must come after the last extended config
133133 // in case some rules re-enabled by the extended config
0 commit comments