From 91e846d325bb5b09e63e4473f44c32e9cf4029ce Mon Sep 17 00:00:00 2001 From: Bluzzi Date: Sun, 24 Dec 2023 09:20:23 +0100 Subject: [PATCH] chore(package.json): update "@types/node" dependency to version "^20.10.5" to ensure compatibility chore(stylistic.ts): remove unused type declarations "Tgm" and "Foo" to improve code readability chore(eslint.ts): comment out unused "stylistic" option in the imports configuration to prevent potential conflicts --- package.json | 2 +- src/configs/stylistic.ts | 3 +++ src/utils/eslint.ts | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ad5a232..60e057c 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "local-pkg": "^0.5.0" }, "devDependencies": { - "@types/node": "^20.9.0", + "@types/node": "^20.10.5", "tsup": "^7.2.0", "typescript": "^5.2.2" } diff --git a/src/configs/stylistic.ts b/src/configs/stylistic.ts index 9557976..8427f5d 100644 --- a/src/configs/stylistic.ts +++ b/src/configs/stylistic.ts @@ -3,6 +3,9 @@ import { pluginAntfu, pluginStylistic } from "#/extends/plugin"; import type { ConfigItem, StylisticConfig } from "#/utils/type"; +type Tgm = T; +type Foo = Tgm<{ members: string } >; + export function stylistic(options: StylisticConfig = {}): ConfigItem[] { const { indent = 2, diff --git a/src/utils/eslint.ts b/src/utils/eslint.ts index b3381f3..8b3a045 100644 --- a/src/utils/eslint.ts +++ b/src/utils/eslint.ts @@ -71,7 +71,7 @@ configs.push([gitignore(enableGitignore)]); stylistic: stylisticOptions }), imports({ - stylistic: stylisticOptions + // stylistic: stylisticOptions }), unicorn() );