Skip to content

Commit

Permalink
chore(package.json): update "@types/node" dependency to version "^20.…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
Bluzzi committed Dec 24, 2023
1 parent eb5c115 commit 91e846d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
3 changes: 3 additions & 0 deletions src/configs/stylistic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import { pluginAntfu, pluginStylistic } from "#/extends/plugin";
import type { ConfigItem, StylisticConfig } from "#/utils/type";

type Tgm<T> = T;
type Foo = Tgm<{ members: string } >;

export function stylistic(options: StylisticConfig = {}): ConfigItem[] {
const {
indent = 2,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/eslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ configs.push([gitignore(enableGitignore)]);
stylistic: stylisticOptions
}),
imports({
stylistic: stylisticOptions
// stylistic: stylisticOptions
}),
unicorn()
);
Expand Down

0 comments on commit 91e846d

Please sign in to comment.