From a9dcaaf68493c3ca1dd781effbb97bdeafaf1413 Mon Sep 17 00:00:00 2001 From: jimmy-guzman Date: Thu, 7 Nov 2024 20:47:09 -0600 Subject: [PATCH] =?UTF-8?q?refactor:=20=E2=99=BB=EF=B8=8F=20use=20`TypedCo?= =?UTF-8?q?nfigItem`=20for=20node=20and=20javascript?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/configs/javascript.ts | 4 ++-- src/configs/node.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/configs/javascript.ts b/src/configs/javascript.ts index 3610bca..4df5121 100644 --- a/src/configs/javascript.ts +++ b/src/configs/javascript.ts @@ -1,4 +1,4 @@ -import type { Linter } from "eslint"; +import type { TypedConfigItem } from "../types"; import { javascriptRules } from "../rules/javascript"; @@ -11,5 +11,5 @@ export const javascriptConfig = () => { name: "jimmy.codes/javascript", rules: javascriptRules, }, - ] satisfies Linter.Config[]; + ] satisfies TypedConfigItem[]; }; diff --git a/src/configs/node.ts b/src/configs/node.ts index 475767b..845281d 100644 --- a/src/configs/node.ts +++ b/src/configs/node.ts @@ -1,7 +1,7 @@ -import type { Linter } from "eslint"; - import nodePlugin from "eslint-plugin-n"; +import type { TypedConfigItem } from "../types"; + import { nodeRules } from "../rules/node"; export const nodeConfig = () => { @@ -13,5 +13,5 @@ export const nodeConfig = () => { }, rules: nodeRules, }, - ] satisfies Linter.Config[]; + ] satisfies TypedConfigItem[]; };