Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ npmPreapprovedPackages:
- one-way-git-sync
- next
- '@next/*'
- '@types/*'
- '@typescript/*'
- '@oxfmt/*'
- '@oxlint/*'
Expand Down
4 changes: 3 additions & 1 deletion oxlint.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// wbfy:start oxlint-base
import oxlintResolvedConfig from '@willbooster/oxlint-config';
import oxlintBaseConfig from '@willbooster/oxlint-config';

const oxlintResolvedConfig = oxlintBaseConfig;
Comment on lines +2 to +4
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The intermediate variable oxlintBaseConfig and its assignment to oxlintResolvedConfig are redundant. You can import the configuration directly as oxlintResolvedConfig to simplify the code, adhering to the rule of eliminating redundancy.

Suggested change
import oxlintBaseConfig from '@willbooster/oxlint-config';
const oxlintResolvedConfig = oxlintBaseConfig;
import oxlintResolvedConfig from '@willbooster/oxlint-config';
References
  1. Simplify code as much as possible to eliminate redundancy. (link)

// wbfy:end oxlint-base

// wbfy:start oxlint-export
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"@typescript/native-preview": "7.0.0-dev.20260421.2",
"@willbooster/oxfmt-config": "1.2.2",
"@willbooster/oxlint-config": "1.4.6",
"@willbooster/wb": "13.12.13",
"@willbooster/wb": "13.12.14",
"build-ts": "17.1.10",
"conventional-changelog-conventionalcommits": "9.3.1",
"jsdom": "29.0.2",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3795,7 +3795,7 @@ __metadata:
"@willbooster/monaco-loader": "npm:1.1.1"
"@willbooster/oxfmt-config": "npm:1.2.2"
"@willbooster/oxlint-config": "npm:1.4.6"
"@willbooster/wb": "npm:13.12.13"
"@willbooster/wb": "npm:13.12.14"
build-ts: "npm:17.1.10"
conventional-changelog-conventionalcommits: "npm:9.3.1"
jsdom: "npm:29.0.2"
Expand Down Expand Up @@ -3845,9 +3845,9 @@ __metadata:
languageName: node
linkType: hard

"@willbooster/wb@npm:13.12.13":
version: 13.12.13
resolution: "@willbooster/wb@npm:13.12.13"
"@willbooster/wb@npm:13.12.14":
version: 13.12.14
resolution: "@willbooster/wb@npm:13.12.14"
dependencies:
chalk: "npm:5.6.2"
dotenv: "npm:17.4.2"
Expand All @@ -3859,7 +3859,7 @@ __metadata:
yargs: "npm:18.0.0"
bin:
wb: bin/index.js
checksum: 10c0/3819f93a041ded16ad95f7d655c60bd540cccb1e0d1b1f87240c37f10993e8225251a0cf69e0f553a2baaa0e62a06bfcc29f72e568af13fe8c9fff9acae24ded
checksum: 10c0/3d1812d7a7bcfcc4d80185121320efaa3bbc6f1b44341aff4157bb3b1d8030a46cc35ab542f9f361410da0ab0878e986be7f37b801ce1c4cdcce7f02f81420d4
languageName: node
linkType: hard

Expand Down
Loading