eslint.config.js (view raw)
1import prettier from "eslint-config-prettier";
2import js from '@eslint/js';
3import svelte from 'eslint-plugin-svelte';
4import globals from 'globals';
5import ts from 'typescript-eslint';
6
7export default ts.config(
8 js.configs.recommended,
9 ...ts.configs.recommended,
10 ...svelte.configs["flat/recommended"],
11 prettier,
12 ...svelte.configs['flat/prettier'],
13 {
14 languageOptions: {
15 globals: {
16 ...globals.browser,
17 ...globals.node
18 }
19 }
20 },
21 {
22 files: ["**/*.svelte"],
23
24 languageOptions: {
25 parserOptions: {
26 parser: ts.parser
27 }
28 }
29 },
30 {
31 ignores: ["build/", ".svelte-kit/", "dist/"]
32 }
33);