{"id":16388174,"url":"https://github.com/kentonishi/svelte-typescript-template","last_synced_at":"2025-10-26T11:31:53.131Z","repository":{"id":42193548,"uuid":"421120565","full_name":"KentoNishi/svelte-typescript-template","owner":"KentoNishi","description":"An opinionated template for my Svelte projects.","archived":false,"fork":false,"pushed_at":"2023-07-17T15:21:20.000Z","size":244,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T19:04:24.222Z","etag":null,"topics":["eslint","github-pages","i18n","prettier","svelte","svelte-ts","template","typescript","vite","vscode"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KentoNishi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-25T17:26:03.000Z","updated_at":"2024-03-01T17:32:14.000Z","dependencies_parsed_at":"2023-02-01T04:46:48.771Z","dependency_job_id":null,"html_url":"https://github.com/KentoNishi/svelte-typescript-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KentoNishi%2Fsvelte-typescript-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KentoNishi%2Fsvelte-typescript-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KentoNishi%2Fsvelte-typescript-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KentoNishi%2Fsvelte-typescript-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KentoNishi","download_url":"https://codeload.github.com/KentoNishi/svelte-typescript-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238319562,"owners_count":19452359,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eslint","github-pages","i18n","prettier","svelte","svelte-ts","template","typescript","vite","vscode"],"created_at":"2024-10-11T04:28:31.999Z","updated_at":"2025-10-26T11:31:52.807Z","avatar_url":"https://github.com/KentoNishi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svelte-ts-template\n\nAn opinionated template for my Svelte projects.\n\n## ⚠️ WARNING (July 2023)\n\nThis template was created before SvelteKit had a stable and reliable TypeScript configuration. However, as of July 2023, the default SvelteKit template now uses the same core parsers and formatters as I set up in this template. Therefore, I highly recommend you refer to [SvelteKit's  ``Creating a Project''](https://kit.svelte.dev/docs/creating-a-project) page instead of this template.\n\n## What's Included\n\n* TypeScript\n* Svelte (with TS support)\n* ESLint (with TS support)\n* Prettier (with Svelte support)\n* Preconfigured `svelte-i18n`\n* GitHub Actions template for GitHub Pages \n* Vite with preconfigured Svelte support\n* Preconfigured VSCode settings for ESLint, i18n, etc.\n\nI prefer this template over other existing templates for several reasons:\n\n* Prettier properly formats everything in `.svelte` files\n* ESLint properly lints and autofixes `\u003cscript\u003e` tags in `.svelte` files\n* ESLint works with TypeScript in both `.svelte` and `.ts` files\n* i18n support in Svelte components\n* Easy deploy to GitHub Pages\n* VSCode extensions work out of the box \n\nAt the time of writing, no other template satisfied all of the above. As an autoformat and autofix ~~ab~~user, I NEED this template. I hope you like it too!\n\n## Usage\n\nClick the [***Use this template***](https://github.com/KentoNishi/svelte-typescript-template/generate) button in GitHub to use this template.\n\nOnce you clone your repository, run `yarn` to install dependencies. Then, reload VSCode to refresh the ESLint extension. Finally, use the `ESLint: Fix all auto-fixable problems` command to auto-fix any file.\n\n## Commands\n\n```bash\nyarn                   # install\nyarn dev               # dev server\nyarn build             # prod build\nyarn format            # autofix from cli\nyarn serve             # serve prod\nyarn type:check        # ts checks\nyarn type:check:watch  # ts checks (watch mode)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentonishi%2Fsvelte-typescript-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkentonishi%2Fsvelte-typescript-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentonishi%2Fsvelte-typescript-template/lists"}