all repos — tabemono @ main

eslint.config.js (view raw)

 1import prettier from "eslint-config-prettier";
 2import js from '@eslint/js';
 3import { includeIgnoreFile } from '@eslint/compat';
 4import svelte from 'eslint-plugin-svelte';
 5import globals from 'globals';
 6import { fileURLToPath } from 'node:url';
 7import ts from 'typescript-eslint';
 8const gitignorePath = fileURLToPath(new URL("./.gitignore", import.meta.url));
 9
10export default ts.config(
11  includeIgnoreFile(gitignorePath),
12  js.configs.recommended,
13  ...ts.configs.recommended,
14  ...svelte.configs["flat/recommended"],
15  prettier,
16  ...svelte.configs['flat/prettier'],
17  {
18    languageOptions: {
19	  globals: {
20	    ...globals.browser,
21	    ...globals.node
22	  }
23	}
24  },
25  {
26    files: ["**/*.svelte"],
27
28    languageOptions: {
29	  parserOptions: {
30	    parser: ts.parser
31	  }
32	}
33  }
34);