-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate web app to sveltekit (#265)
Refs: closes #264 ## Summary Migrate web app to SvelteKit. ## Changes - Replace Svelte with SvelteKit - Update ESLint to v9 - Add `eslint-plugin-simple-import-sort` plugin for sorting imports automatically
- Loading branch information
1 parent
88be493
commit 1c2d4fd
Showing
184 changed files
with
3,409 additions
and
24,562 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ bin | |
# Generated files | ||
*.gen.go | ||
web/api | ||
web/.svelte-kit | ||
|
||
# Logs | ||
logs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
import js from "@eslint/js"; | ||
import prettier from "eslint-config-prettier"; | ||
import simpleImportSort from "eslint-plugin-simple-import-sort"; | ||
import svelte from "eslint-plugin-svelte"; | ||
import globals from "globals"; | ||
import ts from "typescript-eslint"; | ||
|
||
import svelteConfig from "./svelte.config.js"; | ||
|
||
/** @type {import('eslint').Linter.Config[]} */ | ||
export default [ | ||
js.configs.recommended, | ||
...ts.configs.recommended, | ||
...svelte.configs["flat/recommended"], | ||
prettier, | ||
...svelte.configs["flat/prettier"], | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
}, | ||
}, | ||
}, | ||
{ | ||
files: ["**/*.svelte"], | ||
languageOptions: { | ||
parserOptions: { | ||
svelteConfig, | ||
parser: ts.parser, | ||
svelteFeatures: { | ||
experimentalGenerics: true, | ||
}, | ||
}, | ||
}, | ||
}, | ||
{ | ||
plugins: { | ||
"simple-import-sort": simpleImportSort, | ||
}, | ||
rules: { | ||
"simple-import-sort/imports": [ | ||
"error", | ||
{ | ||
groups: [ | ||
// Side effect imports. | ||
["^\\u0000"], | ||
// Svelte imports. | ||
["^svelte"], | ||
// Node.js builtins prefixed with `node:`. | ||
["^node:"], | ||
// Packages. | ||
// Things that start with a letter (or digit or underscore), or `@` followed by a letter. | ||
["^@?\\w"], | ||
// Absolute imports and other imports such as Svelte-style `$lib`. | ||
// Anything not matched in another group. | ||
["^"], | ||
// Relative imports. | ||
// Anything that starts with a dot. | ||
["^\\."], | ||
], | ||
}, | ||
], | ||
"simple-import-sort/exports": "error", | ||
}, | ||
}, | ||
{ | ||
ignores: [".svelte-kit/", "dist/"], | ||
}, | ||
]; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.