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

feat(linter): eslint-plugin-import no-named-as-default-member rule #1988

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

@github-actions github-actions bot added the A-linter Area - Linter label Jan 11, 2024
Copy link

codspeed-hq bot commented Jan 11, 2024

CodSpeed Performance Report

Merging #1988 will not alter performance

Comparing XantreGodlike:no-named-as-default-member (64de6e9) with main (21909fa)

Summary

✅ 14 untouched benchmarks

@XantreDev XantreDev changed the title No named as default member feat(linter): eslint-plugin-import no-named-as-default-member rule #1981 Jan 11, 2024
@XantreDev XantreDev changed the title feat(linter): eslint-plugin-import no-named-as-default-member rule #1981 feat(linter): eslint-plugin-import no-named-as-default-member rule Jan 11, 2024
@XantreDev XantreDev force-pushed the no-named-as-default-member branch 2 times, most recently from 708a1fa to b9c5eb0 Compare January 11, 2024 13:50
@XantreDev XantreDev marked this pull request as ready for review January 11, 2024 13:50
@XantreDev
Copy link
Contributor Author

#1117

@XantreDev XantreDev force-pushed the no-named-as-default-member branch from b9c5eb0 to 068e73d Compare January 12, 2024 21:15
@XantreDev
Copy link
Contributor Author

Will you merge it?)

@XantreDev
Copy link
Contributor Author

@mysteryven @Boshen

@Boshen Boshen force-pushed the no-named-as-default-member branch from 095182f to 84a3604 Compare January 15, 2024 10:54
@Boshen Boshen enabled auto-merge (squash) January 15, 2024 10:54
@github-actions github-actions bot added the A-prettier Area - Prettier label Jan 15, 2024
@Boshen
Copy link
Member

Boshen commented Jan 15, 2024

Thank you!

@Boshen Boshen force-pushed the no-named-as-default-member branch from 84a3604 to 64de6e9 Compare January 15, 2024 10:59
@Boshen Boshen merged commit c60c315 into oxc-project:main Jan 15, 2024
15 of 16 checks passed
AstKind::VariableDeclarator(decl) => {
if let Some(Expression::MemberExpression(member_expr)) = &decl.init {
process_member_expr(member_expr);
return;
Copy link
Contributor

@mysteryven mysteryven Jan 16, 2024

Choose a reason for hiding this comment

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

@XantreGodlike I know why, these return should be continue? 🙃 Change this will let the below case fail.

import baz from './named-exports';
{
    const baz = {};
    const a = baz.a;
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree, will fix it in this week

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linter Area - Linter A-prettier Area - Prettier
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants