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", }, },