@tammergard/tsconfig 1.0.0 → 2.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/README.md +22 -9
- package/package.json +42 -46
- package/tsconfig.json +24 -24
package/README.md
CHANGED
|
@@ -1,26 +1,39 @@
|
|
|
1
|
-
# @tammergard/
|
|
1
|
+
# @tammergard/tsconfig
|
|
2
2
|
|
|
3
|
-
A sharable
|
|
3
|
+
A sharable TSconfig with personal preferences.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
Install this
|
|
7
|
+
Install this package as a dev dependency.
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
# npm
|
|
11
|
-
npm install @tammergard/
|
|
11
|
+
npm install @tammergard/tsconfig --save-dev
|
|
12
12
|
|
|
13
13
|
# yarn
|
|
14
|
-
yarn add @tammergard/
|
|
14
|
+
yarn add @tammergard/tsconfig --dev
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Register the config in your `tsconfig.json`:
|
|
20
20
|
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
```json
|
|
22
|
+
{
|
|
23
|
+
"extends": "@tammergard/tsconfig/tsconfig.json"
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
You can add additional options in your project, which will override the option
|
|
28
|
+
in `@tammergard/tsconfig` if it's defined there.
|
|
29
|
+
|
|
30
|
+
```json
|
|
31
|
+
{
|
|
32
|
+
"extends": "@tammergard/tsconfig/tsconfig.json",
|
|
33
|
+
"compilerOptions": {
|
|
34
|
+
"strict": false,
|
|
35
|
+
"baseUrl": "src"
|
|
36
|
+
}
|
|
24
37
|
}
|
|
25
38
|
```
|
|
26
39
|
|
package/package.json
CHANGED
|
@@ -1,48 +1,44 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"bugs": {
|
|
45
|
-
"url": "https://github.com/filiptammergard/tsconfig/issues"
|
|
46
|
-
},
|
|
47
|
-
"homepage": "https://github.com/filiptammergard/tsconfig#readme"
|
|
2
|
+
"name": "@tammergard/tsconfig",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "A sharable TSconfig with personal preferences",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"format": "prettier --write .",
|
|
7
|
+
"format-check": "prettier --check .",
|
|
8
|
+
"lint": "eslint .",
|
|
9
|
+
"review": "yarn install --frozen-lockfile && yarn format-check && yarn lint"
|
|
10
|
+
},
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"@tammergard/eslint-config-base": "3.2.0",
|
|
13
|
+
"@tammergard/prettier-config": "2.0.0",
|
|
14
|
+
"@tammergard/semantic-release-config-npm": "1.2.0",
|
|
15
|
+
"eslint": "8.37.0",
|
|
16
|
+
"prettier": "2.8.7",
|
|
17
|
+
"semantic-release": "21.0.0"
|
|
18
|
+
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"typescript": "5"
|
|
21
|
+
},
|
|
22
|
+
"main": "tsconfig.json",
|
|
23
|
+
"files": [
|
|
24
|
+
"tsconfig.json"
|
|
25
|
+
],
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public"
|
|
28
|
+
},
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "git+https://github.com/filiptammergard/tsconfig.git"
|
|
32
|
+
},
|
|
33
|
+
"keywords": [
|
|
34
|
+
"tsconfig",
|
|
35
|
+
"typescript",
|
|
36
|
+
"config"
|
|
37
|
+
],
|
|
38
|
+
"author": "Filip Tammergård <filip+npm@tammergard.se> (https://tammergard.se/)",
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/filiptammergard/tsconfig/issues"
|
|
42
|
+
},
|
|
43
|
+
"homepage": "https://github.com/filiptammergard/tsconfig#readme"
|
|
48
44
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// type checking
|
|
4
|
+
"exactOptionalPropertyTypes": true,
|
|
5
|
+
"noFallthroughCasesInSwitch": true,
|
|
6
|
+
"strict": true,
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
// modules
|
|
9
|
+
"module": "es2020",
|
|
10
|
+
"moduleResolution": "bundler",
|
|
11
|
+
"resolveJsonModule": true,
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
// emit
|
|
14
|
+
"noEmit": true,
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
// javascript support
|
|
17
|
+
"allowJs": false,
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
// interop constraints
|
|
20
|
+
"esModuleInterop": true,
|
|
21
|
+
"forceConsistentCasingInFileNames": true,
|
|
22
|
+
"isolatedModules": true,
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
// landguage and environment
|
|
25
|
+
"jsx": "react-jsx",
|
|
26
|
+
"lib": ["es2021", "dom", "dom.iterable"],
|
|
27
|
+
"target": "es2021",
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
// completeness
|
|
30
|
+
"skipLibCheck": true
|
|
31
|
+
}
|
|
32
32
|
}
|