From 997df59cb00b24cc9c6d1e12ed010de9e5807c86 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Wed, 1 Jan 2025 19:01:42 +0100 Subject: [PATCH] chore: avoid nullish config type (#629) --- src/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 18b2e31..c0f11ba 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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> // TODO: use classic type for config - configs?: Record + configs: Record environments?: Record } -const plugin: VitestPLugin = { +const plugin: VitestPlugin = { meta: { name: 'vitest', version }, + configs: {}, rules: { [lowerCaseTitleName]: lowerCaseTitle, [maxNestedDescribeName]: maxNestedDescribe,