mirror of
https://github.com/SoPat712/my-portfolio.git
synced 2025-08-21 18:28:46 -04:00
fixes?
This commit is contained in:
@@ -1,18 +1,33 @@
|
||||
import { defineConfig } from "eslint/config";
|
||||
import svelte from "eslint-plugin-svelte";
|
||||
import svelteParser from "svelte-eslint-parser";
|
||||
import { dirname } from "path";
|
||||
import { fileURLToPath } from "url";
|
||||
|
||||
// Define __dirname for ES modules
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
|
||||
export default defineConfig([
|
||||
{
|
||||
files: ["**/*.svelte"],
|
||||
languageOptions: {
|
||||
parser: svelteParser,
|
||||
parserOptions: {
|
||||
ecmaVersion: 2021,
|
||||
sourceType: "module",
|
||||
tsconfigRootDir: __dirname,
|
||||
project: ["./tsconfig.json"],
|
||||
},
|
||||
},
|
||||
plugins: {
|
||||
svelte,
|
||||
},
|
||||
settings: {
|
||||
"svelte3/typescript": require("typescript"),
|
||||
},
|
||||
rules: {
|
||||
// Add or override rules here
|
||||
// Add or override Svelte-specific rules here
|
||||
},
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user