@lark-apaas/fullstack-presets 1.1.13 → 1.1.14

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.
@@ -29,6 +29,7 @@ declare const _default: {
29
29
  'no-undef': string;
30
30
  'no-console': string;
31
31
  'prefer-const': string;
32
+ 'no-empty': string;
32
33
  'import/no-unresolved': string;
33
34
  'import/no-extraneous-dependencies': string;
34
35
  'no-restricted-imports': (string | {
@@ -39,6 +39,7 @@ exports.default = {
39
39
  'no-undef': 'off',
40
40
  'no-console': 'error',
41
41
  'prefer-const': 'off',
42
+ 'no-empty': 'off', // 允许空的 catch 块
42
43
  // Import 规则
43
44
  'import/no-unresolved': 'error',
44
45
  'import/no-extraneous-dependencies': 'error',
@@ -185,6 +185,7 @@ const baseConfig = {
185
185
  'no-control-regex': 'off',
186
186
  'no-useless-escape': 'off',
187
187
  'no-case-declarations': 'off',
188
+ 'no-empty': 'off', // 允许空的 catch 块
188
189
  // Import 规则
189
190
  'import/no-unresolved': ['error', { ignore: ['\\?raw$'] }], // 检查导入路径是否存在,忽略 ?raw 查询参数
190
191
  // 其他规则
@@ -29,6 +29,7 @@ declare const _default: {
29
29
  'no-undef': string;
30
30
  'no-console': string;
31
31
  'prefer-const': string;
32
+ 'no-empty': string;
32
33
  'no-control-regex': string;
33
34
  'no-useless-escape': string;
34
35
  'no-case-declarations': string;
@@ -39,6 +39,7 @@ exports.default = {
39
39
  'no-undef': 'off',
40
40
  'no-console': 'error',
41
41
  'prefer-const': 'off',
42
+ 'no-empty': 'off', // 允许空的 catch 块
42
43
  'no-control-regex': 'off',
43
44
  'no-useless-escape': 'off',
44
45
  'no-case-declarations': 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-presets",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "files": [
5
5
  "lib"
6
6
  ],
@@ -44,7 +44,7 @@
44
44
  "styled-jsx": "^5.1.6",
45
45
  "typescript": "^5.9.2",
46
46
  "typescript-eslint": "^8.44.0",
47
- "vitest": "^2.0.0"
47
+ "vitest": "^3.2.4"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "eslint": "^9.0.0",