@zpcscc/configs 2.1.0 → 2.1.2

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.
@@ -52,7 +52,8 @@ module.exports = {
52
52
  Any: true,
53
53
  AnyArray: true,
54
54
  AnyObject: true,
55
- AnyFunction: true
55
+ AnyFunction: true,
56
+ NodeJS: true
56
57
  },
57
58
  rules: {
58
59
  // 数组类型。这里不限制写法
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zpcscc/configs",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "项目通用配置",
5
5
  "keywords": [
6
6
  "commitlint",
@@ -43,17 +43,17 @@
43
43
  "start": "dumi dev"
44
44
  },
45
45
  "dependencies": {
46
- "@babel/core": "7.24.9",
46
+ "@babel/core": "7.25.2",
47
47
  "@babel/plugin-syntax-flow": "7.24.7",
48
- "@babel/plugin-transform-react-jsx": "7.24.7",
48
+ "@babel/plugin-transform-react-jsx": "7.25.2",
49
49
  "@babel/runtime": "7.25.0",
50
- "@commitlint/cz-commitlint": "19.2.0",
50
+ "@commitlint/cz-commitlint": "19.4.0",
51
51
  "@rushstack/eslint-patch": "1.10.4",
52
- "@types/node": "20.14.12",
52
+ "@types/node": "22.3.0",
53
53
  "@types/react": "18.3.3",
54
54
  "@types/react-dom": "18.3.0",
55
- "@typescript-eslint/eslint-plugin": "7.17.0",
56
- "@typescript-eslint/parser": "7.17.0",
55
+ "@typescript-eslint/eslint-plugin": "8.1.0",
56
+ "@typescript-eslint/parser": "8.1.0",
57
57
  "@vue/eslint-config-prettier": "9.0.0",
58
58
  "@vue/eslint-config-typescript": "13.0.0",
59
59
  "commitizen": "4.3.0",
@@ -73,7 +73,7 @@
73
73
  "eslint-plugin-unicorn": "55.0.0",
74
74
  "eslint-plugin-vue": "9.27.0",
75
75
  "inquirer": "9.3.5",
76
- "postcss": "8.4.40",
76
+ "postcss": "8.4.41",
77
77
  "prettier": "3.3.3",
78
78
  "prettier-plugin-organize-imports": "4.0.0",
79
79
  "prettier-plugin-packagejson": "2.5.1",
@@ -85,7 +85,7 @@
85
85
  },
86
86
  "devDependencies": {
87
87
  "dumi": "2.4.7",
88
- "father": "4.4.5",
88
+ "father": "4.5.0",
89
89
  "gh-pages": "6.1.1",
90
90
  "react": "18.3.1",
91
91
  "react-dom": "18.3.1",
@@ -12,7 +12,7 @@ module.exports = {
12
12
  // 缩进采用 2 个空格
13
13
  indentation: 2,
14
14
  // 声明中不允许出现“unknown”属性
15
- 'declaration-property-value-no-unknown': true,
15
+ 'declaration-property-value-no-unknown': null,
16
16
  // 不能为空css样式块
17
17
  'block-no-empty': true,
18
18
  // 指定css函数名为小写
package/types/any.d.ts CHANGED
@@ -3,8 +3,8 @@
3
3
  // 任意值
4
4
  type Any = any;
5
5
  // 任意数组类型
6
- type AnyArray = any[];
6
+ type AnyArray<T = any> = T[];
7
7
  // 任意对象类型
8
- type AnyObject = Record<string, any>;
8
+ type AnyObject<T = any> = Record<string | number, T>;
9
9
  // 任意函数类型
10
- type AnyFunction = (...args: any[]) => any;
10
+ type AnyFunction<T = any> = (...args: T[]) => any;