From d32667051dee2ecaf35d6e13dae0323e71678125 Mon Sep 17 00:00:00 2001 From: pheralb Date: Thu, 21 Aug 2025 10:31:39 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Improve=20eslint=20config=20stru?= =?UTF-8?q?cture?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eslint.config.mjs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 67a4fdd..a37d3d8 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,12 +1,17 @@ -import prettier from "eslint-config-prettier"; -import { includeIgnoreFile } from "@eslint/compat"; import js from "@eslint/js"; -import svelte from "eslint-plugin-svelte"; import globals from "globals"; import { fileURLToPath } from "node:url"; +import { includeIgnoreFile } from "@eslint/compat"; + +// Plugins: import ts from "typescript-eslint"; +import svelte from "eslint-plugin-svelte"; +import prettier from "eslint-config-prettier"; + +// Svelte Config: import svelteConfig from "./svelte.config.js"; +// Ignore files: const gitignorePath = fileURLToPath(new URL("./.gitignore", import.meta.url)); export default ts.config( @@ -21,8 +26,6 @@ export default ts.config( globals: { ...globals.browser, ...globals.node }, }, rules: { - // typescript-eslint strongly recommend that you do not use the no-undef lint rule on TypeScript projects. - // see: https://typescript-eslint.io/troubleshooting/faqs/eslint/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors "no-undef": "off", }, },