diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..1e16145 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,14 @@ +.DS_Store +node_modules +/dist +.env +.env.* +!.env.example + +# Ignore files for PNPM, NPM and YARN +pnpm-lock.yaml +package-lock.json +yarn.lock + +/src-tauri +/target diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 0000000..7078b83 --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,24 @@ +module.exports = { + root: true, + parser: "@typescript-eslint/parser", + extends: [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "prettier", + ], + plugins: ["svelte3", "@typescript-eslint"], + ignorePatterns: ["*.cjs"], + overrides: [{ files: ["*.svelte"], processor: "svelte3/svelte3" }], + settings: { + "svelte3/typescript": () => require("typescript"), + }, + parserOptions: { + sourceType: "module", + ecmaVersion: 2020, + }, + env: { + browser: true, + es2017: true, + node: true, + }, +}; diff --git a/.gitignore b/.gitignore index 62bc3c8..5c028f8 100644 --- a/.gitignore +++ b/.gitignore @@ -8,10 +8,11 @@ pnpm-debug.log* lerna-debug.log* node_modules -dist -dist-ssr +/dist/* +/dist-ssr/* *.local + # Editor directories and files .vscode/* !.vscode/extensions.json @@ -24,3 +25,6 @@ dist-ssr *.njsproj *.sln *.sw? + +!/**/.gitkeep +/target/ diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..eeec8f9 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,15 @@ +.DS_Store +node_modules +/build +/package +.env +.env.* +!.env.example + +# Ignore files for PNPM, NPM and YARN +pnpm-lock.yaml +package-lock.json +yarn.lock + +/src-tauri +/target diff --git a/.run/Run.run.xml b/.run/Run.run.xml deleted file mode 100644 index 22fd066..0000000 --- a/.run/Run.run.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - \ No newline at end of file diff --git a/.run/Tauri Dev.run.xml b/.run/Tauri Dev.run.xml deleted file mode 100644 index a14f67e..0000000 --- a/.run/Tauri Dev.run.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - \ No newline at end of file diff --git a/.run/ui_dev.run.xml b/.run/ui_dev.run.xml deleted file mode 100644 index 018f65b..0000000 --- a/.run/ui_dev.run.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - @@ -28,5 +44,5 @@ Fire after - + diff --git a/src/main.ts b/src/main.ts index 5c1f795..f5a8eeb 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,8 +1,10 @@ -import './app.css' -import App from './App.svelte' +import "./app.css"; +import App from "./App.svelte"; + const app = new App({ - target: document.getElementById('app') -}) + target: document.getElementById("app"), +}); + +export default app; -export default app diff --git a/svelte.config.js b/svelte.config.js index 3630bb3..7714a51 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,7 +1,7 @@ -import sveltePreprocess from 'svelte-preprocess' +import sveltePreprocess from "svelte-preprocess"; export default { // Consult https://github.com/sveltejs/svelte-preprocess // for more information about preprocessors - preprocess: sveltePreprocess() -} + preprocess: sveltePreprocess(), +}; diff --git a/vite.config.ts b/vite.config.ts index c356f41..c6f96a2 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,10 +1,11 @@ -import { defineConfig } from 'vite' -import { svelte } from '@sveltejs/vite-plugin-svelte' +import { defineConfig } from "vite"; +import { svelte } from "@sveltejs/vite-plugin-svelte"; + // https://vitejs.dev/config/ export default defineConfig({ plugins: [svelte()], build: { - write: true - } -}) + write: true, + }, +});