robins-tsconfig 4.0.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/readme.md +5 -4
- package/tsconfig.json +2 -4
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# `robins-tsconfig`
|
|
2
2
|
|
|
3
|
-
[](https://npmx.dev/package/robins-tsconfig)
|
|
4
|
+
[](https://npmx.dev/package/robins-tsconfig)
|
|
5
|
+
[](https://choosealicense.com/licenses/mit/)
|
|
6
6
|
|
|
7
7
|
> this is how i like my typescript projects. you might like it too. 🫱🏼🫲🏽
|
|
8
8
|
|
|
@@ -24,8 +24,9 @@ npm i -D robins-tsconfig
|
|
|
24
24
|
|
|
25
25
|
## good to know
|
|
26
26
|
|
|
27
|
+
- the config makes use of defaults and implicit values as of typescript 6
|
|
27
28
|
- i borrowed heavily from [`@tsconfig/strictest`](https://npmx.dev/package/@tsconfig/strictest) and the [tsconfig cheat sheet](https://www.totaltypescript.com/tsconfig-cheat-sheet) by [matt pocock](https://github.com/mattpocock)
|
|
28
|
-
- you'll have to set [`include`](https://www.typescriptlang.org/tsconfig/#include) and [`exclude`](https://www.typescriptlang.org/tsconfig/#exclude) yourself
|
|
29
|
+
- you'll have to set [`include`](https://www.typescriptlang.org/tsconfig/#include) and [`exclude`](https://www.typescriptlang.org/tsconfig/#exclude) yourself for better performance
|
|
29
30
|
- it assumes you're building for the browser; change [`lib`](https://www.typescriptlang.org/tsconfig/#lib) if you're not
|
|
30
31
|
- if you want to compile via [`tsc`](https://www.typescriptlang.org/docs/handbook/compiler-options.html), override [`noEmit`](https://www.typescriptlang.org/tsconfig/#noEmit) and [`outDir`](https://www.typescriptlang.org/tsconfig/#outDir)
|
|
31
32
|
|
package/tsconfig.json
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"allowJs": true,
|
|
4
3
|
"allowUnreachableCode": false,
|
|
5
4
|
"allowUnusedLabels": false,
|
|
6
5
|
"checkJs": true,
|
|
7
6
|
"erasableSyntaxOnly": true,
|
|
8
|
-
"esModuleInterop": true,
|
|
9
7
|
"exactOptionalPropertyTypes": true,
|
|
10
|
-
"isolatedModules": true,
|
|
11
8
|
"lib": ["esnext", "dom"],
|
|
12
9
|
"module": "preserve",
|
|
13
10
|
"moduleDetection": "force",
|
|
@@ -16,12 +13,13 @@
|
|
|
16
13
|
"noFallthroughCasesInSwitch": true,
|
|
17
14
|
"noImplicitOverride": true,
|
|
18
15
|
"noImplicitReturns": true,
|
|
16
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
19
17
|
"noUncheckedIndexedAccess": true,
|
|
20
18
|
"noUnusedLocals": true,
|
|
21
19
|
"noUnusedParameters": true,
|
|
22
|
-
"pretty": true,
|
|
23
20
|
"resolveJsonModule": true,
|
|
24
21
|
"skipLibCheck": true,
|
|
22
|
+
"target": "esnext",
|
|
25
23
|
"verbatimModuleSyntax": true
|
|
26
24
|
}
|
|
27
25
|
}
|