We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
imported multiple times
I have a Svelte component with this code:
<script lang="ts"> import { onMount } from "svelte"; import { spring } from 'svelte/motion';
I see this error in VSCode and when I run eslint:
2:41 warning '/Users/.../node_modules/svelte/types/index.d.ts' imported multiple times import/no-duplicates 3:24 warning '/Users/.../node_modules/svelte/types/index.d.ts' imported multiple times import/no-duplicates
When I save the file (I have formatOnSave enabled) it moves the spring import to the wrong module and breaks the build:
spring
<script lang="ts"> import { onMount, spring } from "svelte";
https://github.com/seanlail/lint-issue-556
Last commit shows the issue. If you run this locally, remove the comment here and you will see the issue.
eslint: 8.46.0 eslint-import-resolver-typescript: 3.5.5 eslint-plugin-import: 2.28.0 eslint-plugin-svelte: 2.32.4 npm: 9.5.0 node: v18.14.2 svelte: 4.1.2 typescript: 5.1.6
I created this issue in the eslint-plugin-svelte repo but have been advised the issue is with eslint-plugin-import: sveltejs/eslint-plugin-svelte#556
eslint-plugin-svelte
eslint-plugin-import
The text was updated successfully, but these errors were encountered:
duplicate of #1479
Sorry, something went wrong.
No branches or pull requests
I have a Svelte component with this code:
The issue
I see this error in VSCode and when I run eslint:
When I save the file (I have formatOnSave enabled) it moves the
spring
import to the wrong module and breaks the build:Link to GitHub Repo with Minimal Reproducible Example
https://github.com/seanlail/lint-issue-556
Last commit shows the issue.
If you run this locally, remove the comment here and you will see the issue.
Versions
eslint: 8.46.0
eslint-import-resolver-typescript: 3.5.5
eslint-plugin-import: 2.28.0
eslint-plugin-svelte: 2.32.4
npm: 9.5.0
node: v18.14.2
svelte: 4.1.2
typescript: 5.1.6
Related
I created this issue in the
eslint-plugin-svelte
repo but have been advised the issue is witheslint-plugin-import
:sveltejs/eslint-plugin-svelte#556
The text was updated successfully, but these errors were encountered: