Skip to content

chore: enable Rslint JS recommended rules #13938

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/fix-js-lint-violations
May 7, 2026
Merged

chore: enable Rslint JS recommended rules #13938
chenjiahan merged 1 commit into
mainfrom
chenjiahan/fix-js-lint-violations

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Summary

This PR updates the lint configuration to include the JavaScript recommended rules and fixes the reported sparse array destructuring in the npm build script while preserving target triple parsing behavior.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings May 7, 2026 09:57
@chenjiahan chenjiahan requested a review from stormslowly as a code owner May 7, 2026 09:57
@github-actions github-actions Bot added the team The issue/pr is created by the member of Rspack. label May 7, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the repository’s JS/TS lint setup by enabling JavaScript “recommended” rules and adjusts parseTriple in the npm build script to avoid sparse-array destructuring while keeping the same target-triple parsing behavior.

Changes:

  • Enable js.configs.recommended in rslint.config.ts (alongside TS recommended rules).
  • Refactor parseTriple() in scripts/build-npm.cjs to avoid sparse array destructuring and keep ABI/sys extraction explicit.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
scripts/build-npm.cjs Replaces sparse destructuring with explicit index access when parsing target triples.
rslint.config.ts Adds JS recommended lint config and adjusts the config ordering/ignores list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread rslint.config.ts
@github-actions

github-actions Bot commented May 7, 2026

Copy link
Copy Markdown
Contributor

📦 Binary Size-limit

Comparing 2a841ab to chore: enable Rslint for more packages and fix lint issues (#13934) by neverland

🙈 Size remains the same at 61.91MB

@github-actions

github-actions Bot commented May 7, 2026

Copy link
Copy Markdown
Contributor

Rsdoctor Bundle Diff Analysis

Found 6 projects in monorepo, 0 projects with changes.

📊 Quick Summary
Project Total Size Change
popular-libs 1.7 MB 0
react-10k 5.7 MB 0
react-1k 826.4 KB 0
rome 1.6 MB 0
react-5k 2.7 MB 0
ui-components 4.8 MB 0

Generated by Rsdoctor GitHub Action

@codspeed-hq

codspeed-hq Bot commented May 7, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 34 untouched benchmarks


Comparing chenjiahan/fix-js-lint-violations (2a841ab) with main (45e3a8a)

Open in CodSpeed

@chenjiahan chenjiahan changed the title chore: fix js lint violations chore: enable Rslint JS recommended rules May 7, 2026
@chenjiahan chenjiahan enabled auto-merge (squash) May 7, 2026 10:32
@chenjiahan chenjiahan merged commit 2d0f61c into main May 7, 2026
43 checks passed
@chenjiahan chenjiahan deleted the chenjiahan/fix-js-lint-violations branch May 7, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants