@w0s/tsconfig 1.6.2 → 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 +11 -2
- package/package.json +33 -30
- package/tsconfig.json +0 -40
package/README.md
CHANGED
|
@@ -3,12 +3,21 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@w0s/tsconfig)
|
|
4
4
|
[](https://github.com/SaekiTominaga/w0s/actions/workflows/typescript.yml)
|
|
5
5
|
|
|
6
|
-
[TSConfig](https://www.typescriptlang.org/tsconfig) file used on my personal website ([w0s.jp](https://github.com/SaekiTominaga/w0s.jp)).
|
|
6
|
+
[TSConfig](https://www.typescriptlang.org/tsconfig) file used on my personal website ([`w0s.jp`](https://github.com/SaekiTominaga/w0s.jp)).
|
|
7
7
|
|
|
8
8
|
## Usage
|
|
9
9
|
|
|
10
10
|
```json
|
|
11
11
|
{
|
|
12
|
-
"extends": "@w0s/tsconfig"
|
|
12
|
+
"extends": "@w0s/tsconfig(/bundler|/node)?"
|
|
13
13
|
}
|
|
14
14
|
```
|
|
15
|
+
|
|
16
|
+
<dl>
|
|
17
|
+
<dt><code>@w0s/tsconfig</code></dt>
|
|
18
|
+
<dd>The <code><a href="https://www.typescriptlang.org/tsconfig/#module">module</a></code> and <code><a href="https://www.typescriptlang.org/tsconfig/#moduleResolution">moduleResolution</a></code> settings are not included.</dd>
|
|
19
|
+
<dt><code>@w0s/tsconfig/bundler</code></dt>
|
|
20
|
+
<dd>For use with bundlers.</dd>
|
|
21
|
+
<dt><code>@w0s/tsconfig/node</code></dt>
|
|
22
|
+
<dd>For Node.js projects.</dd>
|
|
23
|
+
</dl>
|
package/package.json
CHANGED
|
@@ -1,30 +1,33 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@w0s/tsconfig",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "TSConfig file used on w0s.jp",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"tsconfig"
|
|
7
|
-
],
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
},
|
|
24
|
-
"
|
|
25
|
-
"typescript": "^5.
|
|
26
|
-
},
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
}
|
|
30
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@w0s/tsconfig",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "TSConfig file used on `w0s.jp`",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"tsconfig"
|
|
7
|
+
],
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/SaekiTominaga/config.git"
|
|
11
|
+
},
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"author": "Saeki Tominaga",
|
|
14
|
+
"type": "module",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": "./tsconfig.json",
|
|
17
|
+
"./*": "./tsconfig-*.json"
|
|
18
|
+
},
|
|
19
|
+
"files": [],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"test": "tsc -p __tests__/tsconfig-valid.json",
|
|
22
|
+
"test:invalid": "tsc -p __tests__/tsconfig-invalid.json"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"typescript": "^5.9.3"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"typescript": "^5.8.0"
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
}
|
|
33
|
+
}
|
package/tsconfig.json
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
/* Type Checking */
|
|
4
|
-
"allowUnreachableCode": false,
|
|
5
|
-
"allowUnusedLabels": false,
|
|
6
|
-
"alwaysStrict": false,
|
|
7
|
-
"exactOptionalPropertyTypes": true,
|
|
8
|
-
"noFallthroughCasesInSwitch": true,
|
|
9
|
-
"noImplicitOverride": true,
|
|
10
|
-
"noImplicitReturns": true,
|
|
11
|
-
"noPropertyAccessFromIndexSignature": true,
|
|
12
|
-
"noUncheckedIndexedAccess": true,
|
|
13
|
-
"noUnusedLocals": true,
|
|
14
|
-
"noUnusedParameters": true,
|
|
15
|
-
"strict": true,
|
|
16
|
-
|
|
17
|
-
/* Modules */
|
|
18
|
-
"module": "ES2022",
|
|
19
|
-
"moduleResolution": "Node",
|
|
20
|
-
"rewriteRelativeImportExtensions": true,
|
|
21
|
-
|
|
22
|
-
/* Emit */
|
|
23
|
-
"newLine": "lf",
|
|
24
|
-
|
|
25
|
-
/* Interop Constraints */
|
|
26
|
-
"erasableSyntaxOnly": true,
|
|
27
|
-
"esModuleInterop": true,
|
|
28
|
-
"forceConsistentCasingInFileNames": true,
|
|
29
|
-
"verbatimModuleSyntax": true,
|
|
30
|
-
|
|
31
|
-
/* Language and Environment */
|
|
32
|
-
"target": "ES2022",
|
|
33
|
-
|
|
34
|
-
/* Projects */
|
|
35
|
-
"incremental": true,
|
|
36
|
-
|
|
37
|
-
/* Completeness */
|
|
38
|
-
"skipLibCheck": true
|
|
39
|
-
}
|
|
40
|
-
}
|