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

Generalized no-goto-without-base into no-navigation-without-base #900

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

marekdedic
Copy link
Contributor

Closes #891

Copy link

changeset-bot bot commented Nov 1, 2024

🦋 Changeset detected

Latest commit: daa9785

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
eslint-plugin-svelte Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@marekdedic marekdedic force-pushed the no-navigation-without-base branch 6 times, most recently from 3484782 to 1850e76 Compare November 3, 2024 00:37
@marekdedic marekdedic force-pushed the no-navigation-without-base branch 2 times, most recently from dc92c50 to daa932b Compare November 3, 2024 23:51
@marekdedic marekdedic marked this pull request as ready for review November 4, 2024 00:13
Copy link
Member

@ota-meshi ota-meshi left a comment

Choose a reason for hiding this comment

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

Wow! Thank you for implementing the useful rule!

}
}
})) {
const variable = findVariable(context, (node as TSESTree.ImportSpecifier).local);
Copy link
Member

Choose a reason for hiding this comment

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

Could you please add a test case to see if the following import works?

	import *  as paths from '$app/paths';
    paths.base;

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.

Add rule no-link-without-base
2 participants