@ithinkdt/lint 4.2.0 → 4.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ithinkdt/lint",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "type": "module",
5
5
  "description": "iThinkDT 项目的 ESLint、StyleLint 配置",
6
6
  "keywords": [
@@ -37,10 +37,10 @@
37
37
  "@eslint/json": ">=2.0.1",
38
38
  "@eslint/markdown": "^8.0.3",
39
39
  "@stylistic/eslint-plugin": "^5.10.0",
40
- "@typescript-eslint/parser": "^8.63.0",
40
+ "@typescript-eslint/parser": "^8.64.0",
41
41
  "@unocss/eslint-config": "^66.7.5",
42
42
  "@vitest/eslint-plugin": "^1.6.23",
43
- "@vue/compiler-sfc": "^3.5.39",
43
+ "@vue/compiler-sfc": "^3.5.40",
44
44
  "eslint-flat-config-utils": "^3.2.0",
45
45
  "eslint-import-resolver-custom-alias": "^1.3.2",
46
46
  "eslint-import-resolver-typescript": "^4.4.5",
@@ -50,17 +50,17 @@
50
50
  "eslint-plugin-no-only-tests": "^3.4.0",
51
51
  "eslint-plugin-playwright": "^2.10.5",
52
52
  "eslint-plugin-tsdoc": ">=0.5.2",
53
- "eslint-plugin-unicorn": "^71.1.0",
53
+ "eslint-plugin-unicorn": "^72.0.0",
54
54
  "eslint-plugin-vue": "^10.9.2",
55
55
  "eslint-processor-vue-blocks": "^2.0.0",
56
56
  "globals": "^17.7.0",
57
- "globby": "^16.2.1",
57
+ "globby": "^16.2.2",
58
58
  "is-glob": "^4.0.3",
59
59
  "postcss-html": "^1.8.1",
60
60
  "stylelint-config-standard": "^40.0.0",
61
61
  "stylelint-config-standard-vue": "^1.0.0",
62
62
  "stylelint-order": "^8.1.1",
63
- "typescript-eslint": "^8.63.0",
63
+ "typescript-eslint": "^8.64.0",
64
64
  "vue-eslint-parser": "^10.4.1"
65
65
  },
66
66
  "peerDependencies": {
package/src/base.js CHANGED
@@ -164,6 +164,7 @@ export function base({ stylistic: stylisticOptions, inCI }) {
164
164
  checkArguments: false,
165
165
  checkArrowFunctionBody: false,
166
166
  }],
167
+ 'unicorn/prefer-then-catch': ['warn'],
167
168
  'unicorn/no-null': 'off',
168
169
 
169
170
  // 关闭 优先 String#replaceAll(),使用全局标志进行正则表达式搜索
@@ -16,8 +16,8 @@ export const noRelativeParentImportRule = {
16
16
  const aliasModuleDeclarations = (node) => {
17
17
  const importModuleName = node.source?.value
18
18
  if (
19
- !node.source?.range
20
- || typeof importModuleName !== 'string'
19
+ typeof importModuleName !== 'string'
20
+ || !node.source?.range
21
21
  || importModuleName[0] !== '.'
22
22
  || importModuleName[1] !== '.'
23
23
  )