Skip to content

Commit

Permalink
chore: avoid nullish config type (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Jan 1, 2025
1 parent 31cae3b commit 997df59
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,22 +159,23 @@ const recommended = {
[noImportNodeTestName]: 'error'
} as const

interface VitestPLugin extends Linter.Plugin {
interface VitestPlugin extends Linter.Plugin {
meta: {
name: string
version: string
}
rules: Record<string, RuleModule<any, any>>
// TODO: use classic type for config
configs?: Record<string, any>
configs: Record<string, any>
environments?: Record<string, any>
}

const plugin: VitestPLugin = {
const plugin: VitestPlugin = {
meta: {
name: 'vitest',
version
},
configs: {},
rules: {
[lowerCaseTitleName]: lowerCaseTitle,
[maxNestedDescribeName]: maxNestedDescribe,
Expand Down

0 comments on commit 997df59

Please sign in to comment.