This is a SvelteKit skeleton project which I use as a GitHub template to create SvelteKit examples:
- It uses JSDoc annotations for TypeScript support.
- It comes with linting support for JSDoc.
- It includes workspace settings for VS Code.
I update dependencies in this template regularly. These are the steps:
- Run
pnpm create svelte@latest .
to regenerate the SvelteKit skeleton project into the existing directory. - Where should we create your project? Hit enter to use the current directory.
- Directory not empty. Continue? Yes.
- Which Svelte app template? Skeleton project.
- Add type checking with TypeScript? Yes, using JavaScript with JSDoc comments.
- Add ESLint and Prettier.
- Revert
README.md
(on StackBlitz copy content from GitHub website to revert). - Run
pnpm i -D eslint-plugin-jsdoc
. - Check changes in
.eslintrc.js
and manually revert preservingeslint-plugin-jsdoc
. - Delete folder
node_modules
and filepnpm-lock.yaml
and runpnpm i
.