Shared TypeScript config for my projects.
yarn add -D @tookredpill/tsconfig
Create a tsconfig.json
file in your project and extend it with one of the available configs.
{
"extends": "@tookredpill/tsconfig/configs/vite.json",
"compilerOptions": {
"jsx": "react-jsx"
}
}
{
"extends": "@tookredpill/tsconfig/configs/vite.json",
"compilerOptions": {
"jsx": "preserve",
"jsxImportSource": "solid-js"
}
}
{
"extends": "@tookredpill/tsconfig/configs/base.json",
"compilerOptions": {
"target": "ES2021",
"module": "ES2022",
"lib": ["ES2021"],
"outDir": "dist"
}
}