@zpcscc/configs 2.0.5 → 2.0.7

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.
@@ -9,8 +9,6 @@ module.exports = {
9
9
  'eslint:recommended',
10
10
  // eslint的标准配置
11
11
  'standard',
12
- // ts的标准支持
13
- 'standard-with-typescript',
14
12
  // 对eslint注释的提示
15
13
  'plugin:eslint-comments/recommended',
16
14
  // ts推荐配置,做了一些兼容处理
@@ -21,6 +19,8 @@ module.exports = {
21
19
  'plugin:import/typescript',
22
20
  // unicorn的推荐配置
23
21
  'plugin:unicorn/recommended',
22
+ // n的推荐配置
23
+ 'plugin:n/recommended',
24
24
  // 对promise的推荐配置
25
25
  'plugin:promise/recommended',
26
26
  /**
@@ -57,8 +57,10 @@ module.exports = {
57
57
  '@typescript-eslint/consistent-type-assertions': 'off',
58
58
  // 强制ts类型使用type关键字,好处是,type关键字可以让ts类型更加明确,鼠标悬浮可以显示具体类型,且有interface的所有功能;
59
59
  '@typescript-eslint/consistent-type-definitions': ['error', 'type'],
60
- // import 类型时,需要加 type
61
- '@typescript-eslint/consistent-type-imports': 'error',
60
+ // import 类型时,需要加 type,使用内联方式。 import { type FC } from 'react'
61
+ '@typescript-eslint/consistent-type-imports': ['error', {
62
+ fixStyle: 'inline-type-imports'
63
+ }],
62
64
  // 显示函数返回类型。关闭此校验,部分函数没有返回值。无需每个都显示类型
63
65
  '@typescript-eslint/explicit-function-return-type': 'off',
64
66
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zpcscc/configs",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
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.5",
47
- "@babel/plugin-syntax-flow": "7.24.1",
48
- "@babel/plugin-transform-react-jsx": "7.23.4",
49
- "@babel/runtime": "7.24.5",
46
+ "@babel/core": "7.24.9",
47
+ "@babel/plugin-syntax-flow": "7.24.7",
48
+ "@babel/plugin-transform-react-jsx": "7.24.7",
49
+ "@babel/runtime": "7.24.8",
50
50
  "@commitlint/cz-commitlint": "19.2.0",
51
- "@rushstack/eslint-patch": "1.10.2",
52
- "@types/node": "20.12.12",
53
- "@types/react": "18.3.2",
51
+ "@rushstack/eslint-patch": "1.10.3",
52
+ "@types/node": "20.14.10",
53
+ "@types/react": "18.3.3",
54
54
  "@types/react-dom": "18.3.0",
55
- "@typescript-eslint/eslint-plugin": "6.21.0",
56
- "@typescript-eslint/parser": "6.19.1",
55
+ "@typescript-eslint/eslint-plugin": "7.16.1",
56
+ "@typescript-eslint/parser": "7.16.1",
57
57
  "@vue/eslint-config-prettier": "9.0.0",
58
58
  "@vue/eslint-config-typescript": "13.0.0",
59
59
  "commitizen": "4.3.0",
@@ -61,39 +61,38 @@
61
61
  "eslint": "8.57.0",
62
62
  "eslint-config-prettier": "9.1.0",
63
63
  "eslint-config-standard": "17.1.0",
64
- "eslint-config-standard-with-typescript": "43.0.1",
65
64
  "eslint-import-resolver-typescript": "3.6.1",
66
65
  "eslint-plugin-eslint-comments": "3.2.0",
67
66
  "eslint-plugin-import": "2.29.1",
68
- "eslint-plugin-jsx-a11y": "6.8.0",
69
- "eslint-plugin-n": "16.6.2",
67
+ "eslint-plugin-jsx-a11y": "6.9.0",
68
+ "eslint-plugin-n": "16",
70
69
  "eslint-plugin-prettier": "5.1.3",
71
- "eslint-plugin-promise": "6.1.1",
72
- "eslint-plugin-react": "7.34.1",
70
+ "eslint-plugin-promise": "6.4.0",
71
+ "eslint-plugin-react": "7.34.4",
73
72
  "eslint-plugin-react-hooks": "4.6.2",
74
- "eslint-plugin-unicorn": "53.0.0",
75
- "eslint-plugin-vue": "9.26.0",
76
- "inquirer": "9.2.21",
77
- "postcss": "8.4.38",
78
- "prettier": "3.2.5",
79
- "prettier-plugin-organize-imports": "3.2.4",
80
- "prettier-plugin-packagejson": "2.5.0",
73
+ "eslint-plugin-unicorn": "54.0.0",
74
+ "eslint-plugin-vue": "9.27.0",
75
+ "inquirer": "9.3.5",
76
+ "postcss": "8.4.39",
77
+ "prettier": "3.3.3",
78
+ "prettier-plugin-organize-imports": "4.0.0",
79
+ "prettier-plugin-packagejson": "2.5.1",
81
80
  "stylelint": "14.16.1",
82
81
  "stylelint-config-idiomatic-order": "10.0.0",
83
82
  "stylelint-declaration-block-no-ignored-properties": "2.8.0",
84
- "typescript": "5.4.5",
85
- "vue-eslint-parser": "9.4.2"
83
+ "typescript": "5.5.3",
84
+ "vue-eslint-parser": "9.4.3"
86
85
  },
87
86
  "devDependencies": {
88
- "dumi": "2.3.4",
89
- "father": "4.4.1",
87
+ "dumi": "2.4.6",
88
+ "father": "4.4.5",
90
89
  "gh-pages": "6.1.1",
91
90
  "react": "18.3.1",
92
91
  "react-dom": "18.3.1",
93
92
  "react-is": "18.3.1",
94
93
  "styled-components": "6.1.11",
95
- "tslib": "2.6.2",
96
- "webpack": "5.91.0"
94
+ "tslib": "2.6.3",
95
+ "webpack": "5.93.0"
97
96
  },
98
97
  "publishConfig": {
99
98
  "access": "public",