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, js.configs.recommended,
tseslint.configs.recommended, tseslint.configs.recommended,
{ {
files: ["**/*.{tsx,ts}"],
plugins: { plugins: {
"better-tailwindcss": eslintPluginBetterTailwindcss, "better-tailwindcss": eslintPluginBetterTailwindcss,
}, },
ignores: ["**/node_modules/**", "eslint.config.ts"], ignores: ["**/node_modules/**", "eslint.config.ts", "dist/**"],
languageOptions: { languageOptions: {
parser: eslintParserTypeScript, parser: eslintParserTypeScript,
parserOptions: { parserOptions: {
project: true, project: "./tsconfig.eslint.json",
ecmaFeatures: { ecmaFeatures: {
jsx: true, jsx: true,
}, },
@ -24,7 +25,6 @@ export default tseslint.config(
...globals.node, ...globals.node,
}, },
}, },
files: ["**/*.{tsx,ts}"],
settings: { settings: {
"better-tailwindcss": { "better-tailwindcss": {
entryPoint: "src/main.css", 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 "esModuleInterop": true
// "noImplicitReturns": true // "noImplicitReturns": true
}, },
"include": ["src", "tests", "package.json"] "include": ["src", "package.json"],
"exclude": ["dist", "node_modules"]
} }