mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-11-04 08:10:28 +09:00
52 lines
1.3 KiB
JavaScript
52 lines
1.3 KiB
JavaScript
import { includeIgnoreFile } from "@eslint/compat";
|
|
import js from "@eslint/js";
|
|
import { loadConfig } from "@sveltejs/load-config";
|
|
import { defineConfig } from "eslint/config";
|
|
import prettier from "eslint-config-prettier";
|
|
import svelte from "eslint-plugin-svelte";
|
|
import tailwind from "eslint-plugin-tailwindcss";
|
|
import globals from "globals";
|
|
import ts from "typescript-eslint";
|
|
import { fileURLToPath } from "url";
|
|
|
|
const svelteConfig = (await loadConfig("./", { traverse: false }))?.config;
|
|
|
|
const gitignorePath = fileURLToPath(new URL("./.gitignore", import.meta.url));
|
|
|
|
export default defineConfig(
|
|
includeIgnoreFile(gitignorePath),
|
|
js.configs.recommended,
|
|
...ts.configs.recommended,
|
|
...svelte.configs.recommended,
|
|
tailwind.configs.recommended,
|
|
prettier,
|
|
...svelte.configs.prettier,
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.node,
|
|
},
|
|
},
|
|
settings: {
|
|
tailwindcss: {
|
|
cssConfigPath: "./src/app.css",
|
|
},
|
|
},
|
|
rules: {
|
|
"no-undef": "off",
|
|
},
|
|
},
|
|
{
|
|
files: ["**/*.svelte", "**/*.svelte.ts", "**/*.svelte.js"],
|
|
languageOptions: {
|
|
parserOptions: {
|
|
projectService: true,
|
|
extraFileExtensions: [".svelte"],
|
|
parser: ts.parser,
|
|
svelteConfig,
|
|
},
|
|
},
|
|
},
|
|
);
|