add tests to main tsconfig
This commit is contained in:
parent
c156dffcda
commit
e0111db5f5
3 changed files with 11 additions and 3 deletions
|
|
@ -3,8 +3,16 @@ import eslintParserTypeScript from "@typescript-eslint/parser";
|
||||||
import eslintPluginBetterTailwindcss from "eslint-plugin-better-tailwindcss";
|
import eslintPluginBetterTailwindcss from "eslint-plugin-better-tailwindcss";
|
||||||
import globals from "globals";
|
import globals from "globals";
|
||||||
import tseslint from "typescript-eslint";
|
import tseslint from "typescript-eslint";
|
||||||
|
import path from "path";
|
||||||
|
import { fileURLToPath } from "url";
|
||||||
|
|
||||||
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
|
const __dirname = path.dirname(__filename);
|
||||||
|
|
||||||
export default tseslint.config(
|
export default tseslint.config(
|
||||||
|
{
|
||||||
|
ignores: ["**/node_modules/**", "eslint.config.ts", "dist/**"],
|
||||||
|
},
|
||||||
js.configs.recommended,
|
js.configs.recommended,
|
||||||
tseslint.configs.recommended,
|
tseslint.configs.recommended,
|
||||||
{
|
{
|
||||||
|
|
@ -12,11 +20,11 @@ export default tseslint.config(
|
||||||
plugins: {
|
plugins: {
|
||||||
"better-tailwindcss": eslintPluginBetterTailwindcss,
|
"better-tailwindcss": eslintPluginBetterTailwindcss,
|
||||||
},
|
},
|
||||||
ignores: ["**/node_modules/**", "eslint.config.ts", "dist/**"],
|
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
parser: eslintParserTypeScript,
|
parser: eslintParserTypeScript,
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: "./tsconfig.eslint.json",
|
project: "./tsconfig.eslint.json",
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
ecmaFeatures: {
|
ecmaFeatures: {
|
||||||
jsx: true,
|
jsx: true,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,5 @@
|
||||||
"noEmit": true
|
"noEmit": true
|
||||||
},
|
},
|
||||||
"extends": "./tsconfig.json",
|
"extends": "./tsconfig.json",
|
||||||
"include": ["src", "tests/**/*.ts", "eslint.config.ts", "package.json"]
|
"include": ["src", "tests", "eslint.config.ts", "package.json"]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,6 @@
|
||||||
"esModuleInterop": true
|
"esModuleInterop": true
|
||||||
// "noImplicitReturns": true
|
// "noImplicitReturns": true
|
||||||
},
|
},
|
||||||
"include": ["src", "package.json"],
|
"include": ["src", "tests", "package.json"],
|
||||||
"exclude": ["dist", "node_modules"]
|
"exclude": ["dist", "node_modules"]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue