Skip to content

Conversation

crsanti
Copy link
Member

@crsanti crsanti commented Sep 4, 2022

No description provided.

@crsanti crsanti added the documentation Improvements or additions to documentation label Sep 4, 2022
@crsanti crsanti requested a review from brauliodiez September 4, 2022 16:01
- [Svelte for Vs Code](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode)
- [Svelte Intellisense](https://marketplace.visualstudio.com/items?itemName=ardenivanov.svelte-intellisense)

- And if you use prettier is a good idea to install an additional package
Copy link
Member Author

@crsanti crsanti Sep 4, 2022

Choose a reason for hiding this comment

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

I didn't need this plugin in order to be able to format the code, just opening VSCode inside that project and enabling Svelte for VSCode 's TypeScript plugin was enough. Alternatively you can add a default formatter and use svelte.svelte-vscode that will use Prettier under the hood. Prettier extension can't handle .svelte filetypes by itself.

On the other hand it was required for me to open the project folder in VSCode (not as subfolder) in order to have correct import definitions, otherwise I get errors like these:

Cannot find module './assets/svelte.svg' or its corresponding type declarations.ts(2307)

@crsanti crsanti changed the title Improved readme 00 sample revision Sep 7, 2022
@crsanti crsanti force-pushed the chore/00-boiler-typescript-revision branch from ca8397c to 5135663 Compare September 24, 2022 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant