@@ -44,13 +44,13 @@ type Options = {
44
44
allowArguments ?: boolean
45
45
disallowedWords ?: string [ ]
46
46
mustNotMatch ?:
47
- | Partial < Record < MatcherGroups , string | MatcherAndMessage > >
48
- | MatcherAndMessage
49
- | string
47
+ | Partial < Record < MatcherGroups , string | MatcherAndMessage > >
48
+ | MatcherAndMessage
49
+ | string
50
50
mustMatch ?:
51
- | Partial < Record < MatcherGroups , string | MatcherAndMessage > >
52
- | MatcherAndMessage
53
- | string
51
+ | Partial < Record < MatcherGroups , string | MatcherAndMessage > >
52
+ | MatcherAndMessage
53
+ | string
54
54
} [ ]
55
55
56
56
type CompiledMatcherAndMessage = [ matcher : RegExp , message ?: string ]
@@ -91,7 +91,7 @@ const compileMatcherPatterns = (matchers:
91
91
| Partial < Record < MatcherGroups , string | MatcherAndMessage > >
92
92
| MatcherAndMessage
93
93
| string ) : Record < MatcherGroups , CompiledMatcherAndMessage | null > &
94
- Record < string , CompiledMatcherAndMessage | null > => {
94
+ Record < string , CompiledMatcherAndMessage | null > => {
95
95
if ( typeof matchers === 'string' || Array . isArray ( matchers ) ) {
96
96
const compiledMatcher = compileMatcherPattern ( matchers )
97
97
@@ -197,13 +197,12 @@ export default createEslintRule<Options, MESSAGE_IDS>({
197
197
198
198
if ( vitestFnCall ?. type !== 'describe' && vitestFnCall ?. type !== 'test' && vitestFnCall ?. type !== 'it' ) return
199
199
200
-
201
200
// check if extend keyword have been used
202
201
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'
207
206
) {
208
207
return
209
208
}
0 commit comments