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

eslint-plugin-import issues working with Svelte #36

Closed
Metehan-Altuntekin opened this issue Feb 2, 2023 · 0 comments · Fixed by #37
Closed

eslint-plugin-import issues working with Svelte #36

Metehan-Altuntekin opened this issue Feb 2, 2023 · 0 comments · Fixed by #37

Comments

@Metehan-Altuntekin
Copy link
Collaborator

Description:

Use of special paths like $lib/ is throwing errors with eslint-plugin-import in Svelte projects, both in *.svelte and *.ts files.

Related:

Tried:

  • Using eslint-import-resolver-custom-alias:
    Requires setting up ESLint in every Svelte project directory. Not ideal.

  • Overriding *.ts files:
    Affects every file in the monorepo

  • Overriding with pattern:
    There is no simple way of selecting all the Svelte project files.

Suggested:

Simply removing eslint-plugin-import seems to be the easiest solution. It will cost securing the imports but I don't think it's a bigger problem than the current issue.

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 a pull request may close this issue.

1 participant