Cweili / svelte-fa

Tiny FontAwesome component for Svelte

Home Page:https://cweili.github.io/svelte-fa/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

False positive with `eslint-plugin-import`

rakuzen25 opened this issue · comments

commented
import Fa from "svelte-fa";

This triggers Using exported name 'Fa' as identifier for default export. eslint (import/no-named-as-default).

Changing the line to import { Fa } from "svelte-fa"; would not build in SvelteKit, throwing <Fa> is not a valid SSR component..

I'm not too sure what's causing this… Might be similar to import-js/eslint-plugin-import#544?

Seems SvelteKit not support importing pre-compiled modules... #239 (comment)

commented

This issue is closed due to not being active. Please feel free to open it again (for the author) or create a new one and reference this (for others) if you have further questions.