Skip to content

feat(lint): upgrade oxlint to 1.56.0 and enable no-shadow/no-use-before-define to align with ESLint#10809

Open
huhuanming wants to merge 2 commits intoxfrom
feat/enable-no-shadow-rules
Open

feat(lint): upgrade oxlint to 1.56.0 and enable no-shadow/no-use-before-define to align with ESLint#10809
huhuanming wants to merge 2 commits intoxfrom
feat/enable-no-shadow-rules

Conversation

@huhuanming
Copy link
Contributor

@huhuanming huhuanming commented Mar 21, 2026

Summary

  • Upgrade oxlint from 1.43.0 to 1.56.0
  • Enable no-shadow and no-use-before-define lint rules
  • Fix all 9 existing no-shadow violations across the codebase

Changes

File Fix
apps/mobile/plugins/index.js pathfilePath
apps/mobile/metro.config.js pathp, configcfg
apps/mobile/plugins/linkAssets.js linkAssetscopyAsset
development/webpack/ext/devUtils.js Remove redundant local var in isManifestV3()
development/webpack/webpack.base.config.js pathassetPath
development/perf-ci/lib/perfServer.js healthserverHealth
packages/kit/.../TokenDetails/index.tsx resultnameMap
packages/shared/.../polyfillsPlatform.js frinnerReader

Test plan

  • yarn lint:only passes with no new errors from these rules
  • Verify no runtime regressions in desktop/mobile/extension builds

Open with Devin

Upgrade oxlint from 1.43.0 to 1.56.0 and enable two new lint rules:
- no-shadow: detect variable shadowing in outer scopes
- no-use-before-define: disallow usage before declaration

Fix all existing no-shadow violations across the codebase.
@socket-security
Copy link

socket-security bot commented Mar 21, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedpassport-desktop-win32-x64-msvc@​0.1.2491003575100
Addedelectron-check-biometric-auth-changed@​1.0.0701006192100
Added@​onekeyfe/​electron-mac-icloud@​1.2.6731006693100
Addedpassport-desktop@​0.1.2731009976100
Addedreact-native-get-random-values@​1.1.46100100100100100

View full report

Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@huhuanming huhuanming enabled auto-merge (squash) March 21, 2026 01:17
@huhuanming huhuanming changed the title feat(lint): enable no-shadow and no-use-before-define rules feat(lint): upgrade oxlint to 1.56.0 and enable no-shadow/no-use-before-define to align with ESLint Mar 21, 2026
@revan-zhang
Copy link
Contributor

revan-zhang commented Mar 21, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants