aboutsummaryrefslogtreecommitdiff
path: root/eslint.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'eslint.config.js')
-rw-r--r--eslint.config.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/eslint.config.js b/eslint.config.js
new file mode 100644
index 0000000..21d385b
--- /dev/null
+++ b/eslint.config.js
@@ -0,0 +1,24 @@
+import ts from 'typescript-eslint';
+import prettier from 'eslint-config-prettier/flat';
+import globals from 'globals';
+import svelteConfig from '@sveltejs/eslint-config';
+
+export default ts.config(
+ ...svelteConfig,
+ {
+ files: ['src/*.ts', 'src/*.js'],
+ extends: [ts.configs.recommendedTypeChecked, prettier],
+ languageOptions: {
+ parserOptions: {
+ projectService: true,
+ tsconfigRootDir: import.meta.dirname,
+ },
+ globals: {
+ ...globals.node,
+ },
+ },
+ },
+ {
+ ignores: ['**/.svelte-kit'],
+ },
+);