aboutsummaryrefslogtreecommitdiffstats
path: root/src/packages/svelte/eslint.config.mjs
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2024-10-31 10:36:25 -0500
committerMatt Strapp <matt@mattstrapp.net>2024-10-31 10:36:25 -0500
commit8d1d5ca1cab59ead9085bf00f4ee5214bf10bfe8 (patch)
tree0d8a1772a4579a136ebfdd06a3d368b3a2c0d1cf /src/packages/svelte/eslint.config.mjs
parentci: Alter version bump to only ignore pnpm lockfile, not rest (diff)
downloadlocusts-8d1d5ca1cab59ead9085bf00f4ee5214bf10bfe8.tar
locusts-8d1d5ca1cab59ead9085bf00f4ee5214bf10bfe8.tar.gz
locusts-8d1d5ca1cab59ead9085bf00f4ee5214bf10bfe8.tar.bz2
locusts-8d1d5ca1cab59ead9085bf00f4ee5214bf10bfe8.tar.lz
locusts-8d1d5ca1cab59ead9085bf00f4ee5214bf10bfe8.tar.xz
locusts-8d1d5ca1cab59ead9085bf00f4ee5214bf10bfe8.tar.zst
locusts-8d1d5ca1cab59ead9085bf00f4ee5214bf10bfe8.zip
js: Migrate to ESLint 9
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'src/packages/svelte/eslint.config.mjs')
-rw-r--r--src/packages/svelte/eslint.config.mjs23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/packages/svelte/eslint.config.mjs b/src/packages/svelte/eslint.config.mjs
new file mode 100644
index 0000000..7a1890c
--- /dev/null
+++ b/src/packages/svelte/eslint.config.mjs
@@ -0,0 +1,23 @@
+import svelte from 'eslint-plugin-svelte';
+import ts from 'typescript-eslint';
+import library from '@repo/eslint-config/eslint.library.config.js';
+
+const svelteConfig = ts.config(
+ ...svelte.configs['flat/recommended'],
+ ...svelte.configs['flat/prettier'],
+ {
+ files: ['**/*.svelte'],
+
+ languageOptions: {
+ parserOptions: {
+ parser: ts.parser
+ }
+ }
+ },
+ {
+ ignores: ['build/', '.svelte-kit/', 'dist/']
+ }
+);
+
+/** @type {import("eslint").Linter.Config[]} */
+export default [...library, ...svelteConfig];