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