@resolid/config 5.3.2 → 5.3.4

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 CHANGED
@@ -5,7 +5,7 @@ Resolid 通用配置, 包含了 `TypeScript`, `Oxlint` 的基础配置
5
5
  ## 安装
6
6
 
7
7
  ```bash
8
- pnpm add -D @resolid/config oxlint typescript
8
+ pnpm add -D @resolid/config oxlint oxfmt oxlint-tsgolint typescript
9
9
  ```
10
10
 
11
11
  ## TypeScript 配置
@@ -36,6 +36,14 @@ pnpm add -D @resolid/config oxlint typescript
36
36
  }
37
37
  ```
38
38
 
39
+ ### 库项目 (extends 多个项目类型,库项目需放在最后)
40
+
41
+ ```json
42
+ {
43
+ "extends": "@resolid/config/tsconfig/lib.json"
44
+ }
45
+ ```
46
+
39
47
  ## Oxlint 配置
40
48
 
41
49
  ### Javascript Lint 配置
@@ -1,3 +1,5 @@
1
- declare const config: import("oxlint").OxlintConfig;
1
+ import type { OxlintConfig } from "oxlint";
2
+
3
+ declare const config: OxlintConfig;
2
4
 
3
5
  export default config;
@@ -1,3 +1,5 @@
1
- declare const config: import("oxlint").OxlintConfig;
1
+ import type { OxlintConfig } from "oxlint";
2
+
3
+ declare const config: OxlintConfig;
2
4
 
3
5
  export default config;
package/oxlint/node.d.ts CHANGED
@@ -1,3 +1,5 @@
1
- declare const config: import("oxlint").OxlintConfig;
1
+ import type { OxlintConfig } from "oxlint";
2
+
3
+ declare const config: OxlintConfig;
2
4
 
3
5
  export default config;
package/oxlint/react.d.ts CHANGED
@@ -1,3 +1,5 @@
1
- declare const config: import("oxlint").OxlintConfig;
1
+ import type { OxlintConfig } from "oxlint";
2
+
3
+ declare const config: OxlintConfig;
2
4
 
3
5
  export default config;
@@ -1,3 +1,5 @@
1
- declare const config: import("oxlint").OxlintConfig;
1
+ import type { OxlintConfig } from "oxlint";
2
+
3
+ declare const config: OxlintConfig;
2
4
 
3
5
  export default config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolid/config",
3
- "version": "5.3.2",
3
+ "version": "5.3.4",
4
4
  "description": "Oxlint and Typescript config",
5
5
  "keywords": [
6
6
  "oxfmt",
@@ -47,6 +47,7 @@
47
47
  "lefthook": "^2.1.4",
48
48
  "oxfmt": "^0.42.0",
49
49
  "oxlint": "^1.57.0",
50
+ "oxlint-tsgolint": "^0.18.1",
50
51
  "typescript": "^6.0.2"
51
52
  },
52
53
  "peerDependencies": {
@@ -54,12 +55,21 @@
54
55
  "eslint-plugin-react-you-might-not-need-an-effect": "^0.9.2",
55
56
  "oxfmt": "^0.42.0",
56
57
  "oxlint": "^1.57.0",
57
- "oxlint-tsgolint": "^0.17.3",
58
+ "oxlint-tsgolint": "^0.18.1",
58
59
  "typescript": "^6.0.2"
59
60
  },
60
61
  "peerDependenciesMeta": {
61
62
  "typescript": {
62
63
  "optional": true
64
+ },
65
+ "oxlint-tsgolint": {
66
+ "optional": true
67
+ },
68
+ "eslint-plugin-react-hooks": {
69
+ "optional": true
70
+ },
71
+ "eslint-plugin-react-you-might-not-need-an-effect": {
72
+ "optional": true
63
73
  }
64
74
  },
65
75
  "engines": {
@@ -2,6 +2,7 @@
2
2
  "$schema": "https://json.schemastore.org/tsconfig",
3
3
  "extends": "./base.json",
4
4
  "compilerOptions": {
5
- "jsx": "react-jsx"
5
+ "jsx": "react-jsx",
6
+ "types": ["react", "react-dom"]
6
7
  }
7
8
  }