diff --git a/.eslintrc.json b/.eslintrc.json index 32e76ad..dfe8281 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -13,41 +13,25 @@ ], "overrides": [ { - "files": [ - "*.vue" - ], + "files": ["*.vue"], "rules": { "@typescript-eslint/indent": "off" } } ], - "ignorePatterns": [ - "src/theme/**/*.js" - ], + "ignorePatterns": ["src/theme/**/*.js"], "parser": "vue-eslint-parser", "parserOptions": { "parser": "@typescript-eslint/parser", "project": "./tsconfig.json", "ecmaVersion": "latest", "sourceType": "module", - "extraFileExtensions": [ - ".vue" - ] + "extraFileExtensions": [".vue"] }, - "plugins": [ - "@typescript-eslint", - "vue", - "tailwindcss" - ], + "plugins": ["@typescript-eslint", "vue", "tailwindcss"], "rules": { - "max-len": [ - "warn", - 120 - ], - "one-var": [ - "error", - "never" - ], + "max-len": ["warn", 120], + "one-var": ["error", "never"], "no-unused-vars": "off", "default-case": "error", "@typescript-eslint/explicit-function-return-type": "error", diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..2bd9aec --- /dev/null +++ b/.prettierignore @@ -0,0 +1,5 @@ +android +electron/app +electron/build +CHANGELOG.md +LICENSE.md diff --git a/.prettierrc.json b/.prettierrc.json index 321fe50..be3049b 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1,7 +1,5 @@ { - "plugins": [ - "prettier-plugin-tailwindcss" - ], + "plugins": ["prettier-plugin-tailwindcss"], "singleAttributePerLine": true, "singleQuote": true, "trailingComma": "none", diff --git a/electron/electron-builder.config.json b/electron/electron-builder.config.json index 7a9ca9e..d5da86d 100644 --- a/electron/electron-builder.config.json +++ b/electron/electron-builder.config.json @@ -4,17 +4,9 @@ "buildResources": "resources" }, "artifactName": "${productName}.${ext}", - "files": [ - "assets/**/*", - "build/**/*", - "capacitor.config.*", - "app/**/*" - ], + "files": ["assets/**/*", "build/**/*", "capacitor.config.*", "app/**/*"], "linux": { - "target": [ - "AppImage", - "flatpak" - ] + "target": ["AppImage", "flatpak"] }, "flatpak": { "artifactName": "${productName}-${arch}.${ext}" diff --git a/electron/live-runner.js b/electron/live-runner.js index 84c3ea7..1854d14 100644 --- a/electron/live-runner.js +++ b/electron/live-runner.js @@ -10,7 +10,7 @@ const reloadWatcher = { debouncer: null, ready: false, watcher: null, - restarting: false, + restarting: false }; ///* @@ -45,7 +45,7 @@ function setupReloadWatcher() { reloadWatcher.watcher = chokidar .watch('./src/**/*', { ignored: /[/\\]\./, - persistent: true, + persistent: true }) .on('ready', () => { reloadWatcher.ready = true; diff --git a/electron/src/rt/electron-plugins.js b/electron/src/rt/electron-plugins.js index b33b282..85a9620 100644 --- a/electron/src/rt/electron-plugins.js +++ b/electron/src/rt/electron-plugins.js @@ -1,4 +1,3 @@ /* eslint-disable @typescript-eslint/no-var-requires */ -module.exports = { -} \ No newline at end of file +module.exports = {}; diff --git a/electron/tsconfig.json b/electron/tsconfig.json index c74089e..508f26c 100644 --- a/electron/tsconfig.json +++ b/electron/tsconfig.json @@ -1,10 +1,6 @@ { "compileOnSave": true, - "include": [ - "./src/**/*", - "./capacitor.config.ts", - "./capacitor.config.js" - ], + "include": ["./src/**/*", "./capacitor.config.ts", "./capacitor.config.js"], "compilerOptions": { "outDir": "./build", "importHelpers": true, @@ -12,9 +8,7 @@ "module": "CommonJS", "moduleResolution": "node", "esModuleInterop": true, - "typeRoots": [ - "./node_modules/@types" - ], + "typeRoots": ["./node_modules/@types"], "allowJs": true, "rootDir": ".", "skipLibCheck": true diff --git a/src/components/ListTransition.vue b/src/components/ListTransition.vue index 289ab9d..f510631 100644 --- a/src/components/ListTransition.vue +++ b/src/components/ListTransition.vue @@ -8,25 +8,21 @@ - + diff --git a/src/index.html b/src/index.html index e619fa7..2f041a9 100644 --- a/src/index.html +++ b/src/index.html @@ -1,6 +1,9 @@ - +
diff --git a/src/main.css b/src/main.css index 0760feb..6d8fc28 100644 --- a/src/main.css +++ b/src/main.css @@ -10,7 +10,6 @@ } @layer base { - :root { --primary-50: 236 254 255; --primary-100: 207 250 254; @@ -38,14 +37,13 @@ --surface-950: 8 8 8; } - :root[data-theme="dark"] { + :root[data-theme='dark'] { color-scheme: dark !important; } dialog { color: inherit; } - } #app { diff --git a/src/stores/todoStore.ts b/src/stores/todoStore.ts index 5fe7bf5..dc8d369 100644 --- a/src/stores/todoStore.ts +++ b/src/stores/todoStore.ts @@ -83,7 +83,7 @@ export const ZodTodoSchema = ZodEntitySchema.extend({ description: z.string(), done: z.boolean(), - doneAt: z.number().nullable(), + doneAt: z.number().nullable() }); export type Todo = z.infer; diff --git a/tailwind.config.js b/tailwind.config.js index a347e3b..145ef45 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -2,10 +2,7 @@ const colors = require('tailwindcss/colors'); /** @type {import('tailwindcss').Config} */ export default { - content: [ - "./src/index.html", - "./src/**/*.{ts,vue,js}", - ], + content: ['./src/index.html', './src/**/*.{ts,vue,js}'], theme: { extend: { colors: { @@ -32,10 +29,10 @@ export default { 'surface-700': 'rgb(var(--surface-700))', 'surface-800': 'rgb(var(--surface-800))', 'surface-900': 'rgb(var(--surface-900))', - 'surface-950': 'rgb(var(--surface-950))', + 'surface-950': 'rgb(var(--surface-950))' } } }, darkMode: ['class', '[data-theme="dark"]'], plugins: [] -} +}; diff --git a/tsconfig.json b/tsconfig.json index 0fde9d9..ec96df6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,10 +13,7 @@ "compilerOptions": { "types": [], "noEmit": true, - "lib": [ - "esnext", - "dom" - ], + "lib": ["esnext", "dom"], "module": "esnext", "target": "esnext", "moduleResolution": "bundler", diff --git a/vitest.config.js b/vitest.config.js index 9b0557f..ad050f9 100644 --- a/vitest.config.js +++ b/vitest.config.js @@ -1,12 +1,10 @@ -import {defineConfig} from 'vitest/config'; -import vue from '@vitejs/plugin-vue' +import { defineConfig } from 'vitest/config'; +import vue from '@vitejs/plugin-vue'; export default defineConfig({ - plugins: [ - vue() - ], + plugins: [vue()], test: { globals: true, environment: 'happy-dom' } -}) +});