@@ -44,13 +44,13 @@ type Options = {
4444 allowArguments ?: boolean
4545 disallowedWords ?: string [ ]
4646 mustNotMatch ?:
47- | Partial < Record < MatcherGroups , string | MatcherAndMessage > >
48- | MatcherAndMessage
49- | string
47+ | Partial < Record < MatcherGroups , string | MatcherAndMessage > >
48+ | MatcherAndMessage
49+ | string
5050 mustMatch ?:
51- | Partial < Record < MatcherGroups , string | MatcherAndMessage > >
52- | MatcherAndMessage
53- | string
51+ | Partial < Record < MatcherGroups , string | MatcherAndMessage > >
52+ | MatcherAndMessage
53+ | string
5454} [ ]
5555
5656type CompiledMatcherAndMessage = [ matcher : RegExp , message ?: string ]
@@ -91,7 +91,7 @@ const compileMatcherPatterns = (matchers:
9191 | Partial < Record < MatcherGroups , string | MatcherAndMessage > >
9292 | MatcherAndMessage
9393 | string ) : Record < MatcherGroups , CompiledMatcherAndMessage | null > &
94- Record < string , CompiledMatcherAndMessage | null > => {
94+ Record < string , CompiledMatcherAndMessage | null > => {
9595 if ( typeof matchers === 'string' || Array . isArray ( matchers ) ) {
9696 const compiledMatcher = compileMatcherPattern ( matchers )
9797
@@ -197,13 +197,12 @@ export default createEslintRule<Options, MESSAGE_IDS>({
197197
198198 if ( vitestFnCall ?. type !== 'describe' && vitestFnCall ?. type !== 'test' && vitestFnCall ?. type !== 'it' ) return
199199
200-
201200 // check if extend keyword have been used
202201 if (
203- vitestFnCall . members &&
204- vitestFnCall . members [ 0 ] &&
205- vitestFnCall . members [ 0 ] . type === AST_NODE_TYPES . Identifier &&
206- vitestFnCall . members [ 0 ] . name === 'extend'
202+ vitestFnCall . members
203+ && vitestFnCall . members [ 0 ]
204+ && vitestFnCall . members [ 0 ] . type === AST_NODE_TYPES . Identifier
205+ && vitestFnCall . members [ 0 ] . name === 'extend'
207206 ) {
208207 return
209208 }
0 commit comments