From 5b0e1ca0c30475d1fb8ebd0ad6b5a4f305fe32e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emrik=20=C3=96stling?= Date: Fri, 14 Nov 2025 19:27:30 +0100 Subject: [PATCH] chore: fix typescript-eslint --- eslint.config.ts | 6 +++--- tsconfig.eslint.json | 7 +++++++ tsconfig.json | 3 ++- 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 tsconfig.eslint.json diff --git a/eslint.config.ts b/eslint.config.ts index f159401..5b3ab02 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -8,14 +8,15 @@ export default tseslint.config( js.configs.recommended, tseslint.configs.recommended, { + files: ["**/*.{tsx,ts}"], plugins: { "better-tailwindcss": eslintPluginBetterTailwindcss, }, - ignores: ["**/node_modules/**", "eslint.config.ts"], + ignores: ["**/node_modules/**", "eslint.config.ts", "dist/**"], languageOptions: { parser: eslintParserTypeScript, parserOptions: { - project: true, + project: "./tsconfig.eslint.json", ecmaFeatures: { jsx: true, }, @@ -24,7 +25,6 @@ export default tseslint.config( ...globals.node, }, }, - files: ["**/*.{tsx,ts}"], settings: { "better-tailwindcss": { entryPoint: "src/main.css", diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json new file mode 100644 index 0000000..37d9272 --- /dev/null +++ b/tsconfig.eslint.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "noEmit": true + }, + "extends": "./tsconfig.json", + "include": ["src", "tests/**/*.ts", "eslint.config.ts", "package.json"] +} diff --git a/tsconfig.json b/tsconfig.json index ac50753..cb524d9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -29,5 +29,6 @@ "esModuleInterop": true // "noImplicitReturns": true }, - "include": ["src", "tests", "package.json"] + "include": ["src", "package.json"], + "exclude": ["dist", "node_modules"] }