Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

lint typescript in svelte components #801

Closed
sarahscott opened this issue Aug 19, 2020 · 1 comment · Fixed by #847
Closed

lint typescript in svelte components #801

sarahscott opened this issue Aug 19, 2020 · 1 comment · Fixed by #847

Comments

@sarahscott
Copy link
Contributor

sarahscott commented Aug 19, 2020

Currently, eslint-plugin-svelte3 doesn't support typescript because it would require preprocessing, and there is currently no support for preprocessors of any kind. There is a cli tool to check for typescript errors (svelte-check), but no straightforward linting solution for typescript-enabled svelte components.

We might consider something like this approach, but with a more recent version of svelte-preprocess; in any case, getting eslint-plugin-svelte3 working with a preprocessor and specifically with typescript will be a nontrivial chore.

Relevant issues to track:

Inspo from other frameworks, should we take this on:

@xla xla added this to the Housekeeping milestone Aug 19, 2020
@NicoCevallos
Copy link

@sarahscott take a look at this repo where I did more or less the same as you mention in the other repo I made but using patch-package to avoid weird tricky fix lol... in that case you only would need to copy the patch related to eslint-plugin-svelte3, install patch-package and add the postinstall script to apply the patch after install the eslint-plugin-svelte3

@xla xla closed this as completed in #847 Sep 2, 2020
xla pushed a commit that referenced this issue Sep 2, 2020
Closes #801

***
* proof-of-concept linting typescript in svelte components
* rm console log
* linting fixups
* prettier
Co-authored-by: Alexander Simmerl <a.simmerl@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants