Skip to content

Commit 8c585dc

Browse files
committed
fix: remove uncommented tests
1 parent 80e45be commit 8c585dc

File tree

4 files changed

+213
-214
lines changed

4 files changed

+213
-214
lines changed

src/index.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ const createConfig = <R extends Linter.RulesRecord>(rules: R) => (
7070
[`vitest/${ruleName}`]: rules[ruleName]
7171
}
7272
}, {})) as {
73-
[K in keyof R as `vitest/${Extract<K, string>}`]: R[K]
74-
}
73+
[K in keyof R as `vitest/${Extract<K, string>}`]: R[K]
74+
}
7575

7676
const createConfigLegacy = (rules: Record<string, string>) => ({
7777
plugins: ['@vitest'],
@@ -165,7 +165,7 @@ interface VitestPLugin extends Linter.Plugin {
165165
version: string
166166
}
167167
rules: Record<string, RuleModule<any, any>>
168-
//TODO: use classic type for config
168+
// TODO: use classic type for config
169169
configs?: Record<string, any>
170170
environments?: Record<string, any>
171171
}
@@ -268,13 +268,13 @@ plugin.configs = {
268268
'legacy-all': createConfigLegacy(allRules),
269269
'recommended': {
270270
plugins: {
271-
["vitest"]: plugin
271+
['vitest']: plugin
272272
},
273273
rules: createConfig(recommended)
274274
},
275275
'all': {
276276
plugins: {
277-
["vitest"]: plugin
277+
['vitest']: plugin
278278
},
279279
rules: createConfig(allRules)
280280
},
@@ -302,5 +302,4 @@ plugin.configs = {
302302
}
303303
}
304304

305-
306305
export default plugin

src/rules/valid-title.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

5656
type 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

@@ -198,7 +198,7 @@ export default createEslintRule<Options, MESSAGE_IDS>({
198198
if (vitestFnCall?.type !== 'describe' && vitestFnCall?.type !== 'test' && vitestFnCall?.type !== 'it') return
199199

200200
// check if extend keyword have been used
201-
if (vitestFnCall.members.some(m => m.type == AST_NODE_TYPES.Identifier && m.name == "extend")) return
201+
if (vitestFnCall.members.some(m => m.type == AST_NODE_TYPES.Identifier && m.name == 'extend')) return
202202

203203
const [argument] = node.arguments
204204

0 commit comments

Comments
 (0)