Skip to content

fix(rule): fix crash in no-misused-new rule caused by missing node.Name().Text() in ComputedPropertyName node#419

Merged
chenjiahan merged 2 commits intomainfrom
fix/rules-no_misused_new
Dec 26, 2025
Merged

fix(rule): fix crash in no-misused-new rule caused by missing node.Name().Text() in ComputedPropertyName node#419
chenjiahan merged 2 commits intomainfrom
fix/rules-no_misused_new

Conversation

@fansenze
Copy link
Copy Markdown
Contributor

Summary

This PR fixes the build errors encountered after bumping @rslint/core from 0.1.13 to 0.1.14.

Cause: no-misused-new rule throws error on ComputedPropertyName due to missing node.Name().Text()

Related Links

  • related repo: https://github.com/web-infra-dev/rspack/tree/main
  • snapshot:
    • @rslint/core@0.1.13:
    • @rslint/core@0.1.14:
    • debugging @rslint/core@0.1.14 with breakpoints revealed that the no-misused-new rule crashes when encountering a ComputedPropertyName.

Checklist

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

@netlify
Copy link
Copy Markdown

netlify bot commented Dec 25, 2025

Deploy Preview for rslint ready!

Name Link
🔨 Latest commit 8215d3c
🔍 Latest deploy log https://app.netlify.com/projects/rslint/deploys/694e07aca54b25000827b02e
😎 Deploy Preview https://deploy-preview-419--rslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Dec 25, 2025

CLA assistant check
All committers have signed the CLA.

hardfist
hardfist previously approved these changes Dec 25, 2025
@fansenze fansenze force-pushed the fix/rules-no_misused_new branch from e0dcfab to 8215d3c Compare December 26, 2025 03:57
@chenjiahan chenjiahan merged commit 4e3361b into main Dec 26, 2025
17 checks passed
@chenjiahan chenjiahan deleted the fix/rules-no_misused_new branch December 26, 2025 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants