Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(lint/useNamingConvention): ignore object destructuring #2386

Conversation

Conaclos
Copy link
Member

@Conaclos Conaclos commented Apr 9, 2024

Summary

Fix #2332 by ignoring variables coming fron an object destructuring.

I also renamed Named::{Import,Export}Source to Named::{Import,Export} for clarity.

Test Plan

New tests added.

@github-actions github-actions bot added A-Linter Area: linter A-Website Area: website L-JavaScript Language: JavaScript and super languages A-Changelog Area: changelog labels Apr 9, 2024
Copy link

netlify bot commented Apr 9, 2024

Deploy Preview for biomejs ready!

Name Link
🔨 Latest commit 538f435
🔍 Latest deploy log https://app.netlify.com/sites/biomejs/deploys/661573a41ab4ad0008d63360
😎 Deploy Preview https://deploy-preview-2386--biomejs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 100 (🟢 up 4 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 93 (no change from production)
PWA: -
View the detailed breakdown and full score reports

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

@Conaclos Conaclos changed the title fix(lint/useNamingConvention): ignore destructured variables fix(lint/useNamingConvention): ignore object destructuring Apr 9, 2024
@Conaclos Conaclos force-pushed the conaclos/useNamingConvention/ignore-destructured-object-member branch from 811860d to 538f435 Compare April 9, 2024 16:58
@Conaclos Conaclos merged commit d074d73 into main Apr 9, 2024
15 checks passed
@Conaclos Conaclos deleted the conaclos/useNamingConvention/ignore-destructured-object-member branch April 9, 2024 17:11
Copy link

codspeed-hq bot commented Apr 9, 2024

CodSpeed Performance Report

Merging #2386 will not alter performance

Comparing conaclos/useNamingConvention/ignore-destructured-object-member (538f435) with main (6ec8710)

Summary

✅ 93 untouched benchmarks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Changelog Area: changelog A-Linter Area: linter A-Website Area: website L-JavaScript Language: JavaScript and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

💅 useNamingConvention: The rule should ignore variables that are destructured out of objects
1 participant