chore: fix typescript-eslint

This commit is contained in:
Emrik Östling 2025-11-14 19:27:30 +01:00
parent 91aa2c144d
commit 5b0e1ca0c3
3 changed files with 12 additions and 4 deletions

View file

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

7
tsconfig.eslint.json Normal file
View file

@ -0,0 +1,7 @@
{
"compilerOptions": {
"noEmit": true
},
"extends": "./tsconfig.json",
"include": ["src", "tests/**/*.ts", "eslint.config.ts", "package.json"]
}

View file

@ -29,5 +29,6 @@
"esModuleInterop": true
// "noImplicitReturns": true
},
"include": ["src", "tests", "package.json"]
"include": ["src", "package.json"],
"exclude": ["dist", "node_modules"]
}