chore: fix typescript-eslint
This commit is contained in:
parent
91aa2c144d
commit
5b0e1ca0c3
3 changed files with 12 additions and 4 deletions
|
|
@ -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
7
tsconfig.eslint.json
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"noEmit": true
|
||||||
|
},
|
||||||
|
"extends": "./tsconfig.json",
|
||||||
|
"include": ["src", "tests/**/*.ts", "eslint.config.ts", "package.json"]
|
||||||
|
}
|
||||||
|
|
@ -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"]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue