@vocawiki/tsconfig 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/README.md +3 -24
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -13,28 +13,12 @@ pnpm add -D @vocawiki/tsconfig
13
13
 
14
14
  ## 使用
15
15
 
16
- ```json
17
- {
18
- "extends": "./node_modules/@vocawiki/tsconfig/base"
19
- }
20
- ```
21
-
22
- 也支持省略 `./node_modules/` 前缀:
23
-
24
16
  ```json
25
17
  {
26
18
  "extends": "@vocawiki/tsconfig/base"
27
19
  }
28
20
  ```
29
21
 
30
- 以及显式带扩展名的写法:
31
-
32
- ```json
33
- {
34
- "extends": "@vocawiki/tsconfig/base.json"
35
- }
36
- ```
37
-
38
22
  最小的可用示例:
39
23
 
40
24
  ```json
@@ -43,12 +27,8 @@ pnpm add -D @vocawiki/tsconfig
43
27
  "compilerOptions": {
44
28
  "target": "esnext",
45
29
  "module": "esnext",
46
- "lib": ["ESNext"],
47
- "paths": {
48
- "~/*": ["./src/*"]
49
- }
50
- },
51
- "include": ["src"]
30
+ "lib": ["ESNext"]
31
+ }
52
32
  }
53
33
  ```
54
34
 
@@ -59,8 +39,7 @@ pnpm add -D @vocawiki/tsconfig
59
39
  "noUnusedParameters": false,
60
40
  ```
61
41
 
62
- 未使用的变量与参数交给 [Oxlint](../oxlint-config/README.md) 检查:Lint 支持 `_` 前缀约定、能识别仅类型层面的使用,
63
- 且报错位置与修复建议更友好。
42
+ 未使用的变量与参数交给 [Oxlint](../oxlint-config/README.md) 检查:Lint 支持 `_` 前缀约定、能识别仅类型层面的使用,且报错位置与修复建议更友好。
64
43
 
65
44
  ## 常见搭配
66
45
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vocawiki/tsconfig",
3
- "version": "0.1.0",
4
- "description": "Vocawiki 共享的 TypeScript 配置",
3
+ "version": "0.1.1",
4
+ "description": "Vocawiki项目共享的TypeScript配置",
5
5
  "keywords": [
6
6
  "tsconfig",
7
7
  "typescript",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "repository": {
20
20
  "type": "git",
21
- "url": "git+https://github.com/vocawiki/project-configs.git",
21
+ "url": "git+https://github.com/Vocawiki/project-configs.git",
22
22
  "directory": "packages/tsconfig"
23
23
  },
24
24
  "publishConfig": {