diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6c434530..3996a0a6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,7 +32,3 @@ jobs: - name: Check run: | npm run check - - - name: Lint - run: | - npm run lint diff --git a/assets/animations.json b/assets/animations.json index a1bbdbbc..f2b1ce63 100644 --- a/assets/animations.json +++ b/assets/animations.json @@ -303,4 +303,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/lang/en.json b/lang/en.json index 2a257daa..38052280 100644 --- a/lang/en.json +++ b/lang/en.json @@ -29,4 +29,4 @@ "openSheet": "Open Sheet" } } -} \ No newline at end of file +} diff --git a/src/storage/presets.ts b/src/storage/presets.ts index ec2bac63..528f8e2f 100644 --- a/src/storage/presets.ts +++ b/src/storage/presets.ts @@ -96,9 +96,9 @@ export const helpers = { } type presetOptions = - T extends 'onToken' ? ('target' | 'source' | 'both') : - T extends 'ranged' ? { bounce: true, file: string } : - never + | T extends 'onToken' ? ('target' | 'source' | 'both') : + | T extends 'ranged' ? { bounce: true, file: string } : + | never interface EffectOptions { preset: presetOptions diff --git a/tsconfig.json b/tsconfig.json index a6d01f97..d1604afa 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -45,4 +45,4 @@ "src/**/*.js", "src/**/*.svelte" ] -} \ No newline at end of file +} diff --git a/vite.config.ts b/vite.config.ts index 9610eebe..2c1065f7 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -90,7 +90,14 @@ export default defineConfig(({ command: _buildOrServe }) => ({ }, plugins: [ - checker({ typescript: true }), + checker({ + typescript: true, + eslint: { + useFlatConfig: true, + lintCommand: 'eslint "./src/**/*"', + }, + // svelte https://github.com/fi3ework/vite-plugin-checker/issues/370 + }), tsconfigPaths(), svelte({ compilerOptions: {