@codecompose/typescript-config
Advanced tools
Comparing version 1.0.5 to 1.1.0
@@ -6,5 +6,2 @@ { | ||
"compilerOptions": { | ||
/* If transpiling with TypeScript: */ | ||
"sourceMap": true, | ||
/* AND if you're building for a library: */ | ||
@@ -11,0 +8,0 @@ "declaration": true, |
{ | ||
"name": "@codecompose/typescript-config", | ||
"description": "Opinionated reusable TypeScript configurations", | ||
"version": "1.0.5", | ||
"version": "1.1.0", | ||
"license": "MIT", | ||
@@ -29,4 +29,6 @@ "author": "Thijs Koerselman", | ||
"devDependencies": { | ||
"eslint": "^8.57.0" | ||
"eslint": "^8.57.0", | ||
"prettier": "^3.3.3", | ||
"prettier-plugin-jsdoc": "^1.3.0" | ||
} | ||
} |
@@ -8,4 +8,2 @@ { | ||
"jsx": "react-jsx", | ||
/* If transpiling with TypeScript: */ | ||
"sourceMap": true, | ||
@@ -12,0 +10,0 @@ /* AND if you're building for a library: */ |
# typescript-config | ||
Opinionated reusable Typescript configurations. | ||
Opinionated reusable Typescript configurations, assuming: | ||
It assumes: | ||
- A monorepo setup | ||
- You transpile using a bundler | ||
- A monorepo setup (\*) | ||
- Transpile with a bundler | ||
- Strict rules | ||
- src and dist directories | ||
- ~/ as path alias for src | ||
- Use of `src` and `dist` directories | ||
- Use of `~/` as path alias for `src` | ||
(\*) Use the `single-*.json` variants if you do **not** use a monorepo setup. | ||
All configurations have `incremental` set to `true`. For this reason I recommend | ||
adding the following script to your manifest based on `del-cli`: | ||
`"clean": "del dist tsconfig.tsbuildinfo"` | ||
In my experience, it can happen that builds get stuck in limbo and you need to | ||
delete the `tsbuildinfo` file to get things going again. | ||
Source maps are not enabled, because we assume that your bundler will handle | ||
that. | ||
## Install | ||
pnpm i @codecompose/typescript-config | ||
`pnpm i @codecompose/typescript-config -D` | ||
...or the equivalent for your package manager. | ||
## Usage | ||
@@ -21,3 +34,3 @@ | ||
{ | ||
"extends": "@codecompose/typescript-config/library.json" | ||
"extends": "@codecompose/typescript-config/single-react-library.json" | ||
} | ||
@@ -28,3 +41,2 @@ ``` | ||
- base | ||
- library | ||
@@ -34,1 +46,3 @@ - react-library | ||
- nextjs | ||
- single-library | ||
- single-react-library |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5120
46
3
86