We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b7619e6 + 0c9f6e0 commit 33f877fCopy full SHA for 33f877f
src/eslintFactory.ts
@@ -117,7 +117,9 @@ export function resolveSubOptions<K extends keyof OptionsConfig>(
117
options: OptionsConfig,
118
key: K,
119
): ResolvedOptions<OptionsConfig[K]> {
120
- return typeof options[key] === 'boolean' ? ({} as any) : options[key] || {};
+ return typeof options[key] === 'boolean'
121
+ ? ({} as any)
122
+ : (options[key] as any) || {};
123
}
124
125
export function getOverrides<K extends keyof OptionsConfig>(
0 commit comments