Skip to content

Commit 997df59

Browse files
authored
chore: avoid nullish config type (#629)
1 parent 31cae3b commit 997df59

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/index.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -159,22 +159,23 @@ const recommended = {
159159
[noImportNodeTestName]: 'error'
160160
} as const
161161

162-
interface VitestPLugin extends Linter.Plugin {
162+
interface VitestPlugin extends Linter.Plugin {
163163
meta: {
164164
name: string
165165
version: string
166166
}
167167
rules: Record<string, RuleModule<any, any>>
168168
// TODO: use classic type for config
169-
configs?: Record<string, any>
169+
configs: Record<string, any>
170170
environments?: Record<string, any>
171171
}
172172

173-
const plugin: VitestPLugin = {
173+
const plugin: VitestPlugin = {
174174
meta: {
175175
name: 'vitest',
176176
version
177177
},
178+
configs: {},
178179
rules: {
179180
[lowerCaseTitleName]: lowerCaseTitle,
180181
[maxNestedDescribeName]: maxNestedDescribe,

0 commit comments

Comments
 (0)