From b47dbbc68b2babbf32a4c283337702901574aeaa Mon Sep 17 00:00:00 2001 From: Ben Zhang Date: Tue, 14 May 2024 10:37:19 -0700 Subject: [PATCH] signal type for plugin --- src/index.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index 40532a4..5ef5ee3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,15 +5,18 @@ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT */ +import type { Linter } from '@typescript-eslint/utils/ts-eslint'; + import base from './configs/base.js'; import recommended from './configs/recommended.js'; import enforceFooBar from './rules/enforce-foo-bar.js'; + export = { - rules: { - 'enforce-foo-bar': enforceFooBar - }, configs: { base, recommended + }, + rules: { + 'enforce-foo-bar': enforceFooBar } -}; +} satisfies Linter.Plugin;