Skip to content

Commit

Permalink
eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MrVauxs committed Jul 14, 2024
1 parent 4dda271 commit 4d939e1
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 11 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,3 @@ jobs:
- name: Check
run: |
npm run check
- name: Lint
run: |
npm run lint
2 changes: 1 addition & 1 deletion assets/animations.json
Original file line number Diff line number Diff line change
Expand Up @@ -303,4 +303,4 @@
]
}
]
}
}
2 changes: 1 addition & 1 deletion lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
"openSheet": "Open Sheet"
}
}
}
}
6 changes: 3 additions & 3 deletions src/storage/presets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ export const helpers = {
}

type presetOptions<T> =
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<T extends PresetKeys> {
preset: presetOptions<T>
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@
"src/**/*.js",
"src/**/*.svelte"
]
}
}
9 changes: 8 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 4d939e1

Please sign in to comment.