@ithinkdt/lint 4.0.0 → 4.0.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.
Files changed (2) hide show
  1. package/package.json +17 -17
  2. package/src/base.js +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ithinkdt/lint",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "type": "module",
5
5
  "description": "iThinkDT 项目的 ESLint、StyleLint 配置",
6
6
  "keywords": [
@@ -34,34 +34,34 @@
34
34
  "dependencies": {
35
35
  "@eslint-community/eslint-plugin-eslint-comments": "^4.6.0",
36
36
  "@eslint/js": "^9.39.2",
37
- "@eslint/json": ">=1.0.0",
37
+ "@eslint/json": ">=1.0.1",
38
38
  "@eslint/markdown": "7.5.1",
39
- "@stylistic/eslint-plugin": "^5.7.1",
40
- "@typescript-eslint/parser": "^8.54.0",
41
- "@unocss/eslint-config": "^66.6.0",
42
- "@vitest/eslint-plugin": "^1.6.6",
43
- "@vue/compiler-sfc": "^3.5.27",
44
- "eslint-flat-config-utils": "^3.0.0",
39
+ "@stylistic/eslint-plugin": "^5.9.0",
40
+ "@typescript-eslint/parser": "^8.56.1",
41
+ "@unocss/eslint-config": "^66.6.2",
42
+ "@vitest/eslint-plugin": "^1.6.9",
43
+ "@vue/compiler-sfc": "^3.5.29",
44
+ "eslint-flat-config-utils": "^3.0.1",
45
45
  "eslint-import-resolver-custom-alias": "^1.3.2",
46
46
  "eslint-import-resolver-typescript": "^4.4.4",
47
47
  "eslint-merge-processors": "^2.0.0",
48
- "eslint-plugin-format": "^1.3.1",
48
+ "eslint-plugin-format": "^2.0.1",
49
49
  "eslint-plugin-import": "npm:eslint-plugin-import-x@^4.16.1",
50
50
  "eslint-plugin-no-only-tests": "^3.3.0",
51
- "eslint-plugin-playwright": "^2.5.1",
52
- "eslint-plugin-tsdoc": ">=0.5.0",
53
- "eslint-plugin-unicorn": "^62.0.0",
54
- "eslint-plugin-vue": "^10.7.0",
51
+ "eslint-plugin-playwright": "^2.7.1",
52
+ "eslint-plugin-tsdoc": ">=0.5.2",
53
+ "eslint-plugin-unicorn": "^63.0.0",
54
+ "eslint-plugin-vue": "^10.8.0",
55
55
  "eslint-processor-vue-blocks": "^2.0.0",
56
56
  "globals": "^17.3.0",
57
- "globby": "^16.1.0",
57
+ "globby": "^16.1.1",
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": "^7.0.1",
63
- "typescript-eslint": "^8.54.0",
64
- "vue-eslint-parser": "^10.2.0"
63
+ "typescript-eslint": "^8.56.1",
64
+ "vue-eslint-parser": "^10.4.0"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "eslint": ">=9",
@@ -70,7 +70,7 @@
70
70
  },
71
71
  "devDependencies": {
72
72
  "eslint": "^9.39.2",
73
- "stylelint": "~17.1.0",
73
+ "stylelint": "~17.4.0",
74
74
  "typescript": "~5.9.3"
75
75
  },
76
76
  "license": "MIT",
package/src/base.js CHANGED
@@ -191,9 +191,13 @@ export function base({ stylistic: stylisticOptions, inCI }) {
191
191
  },
192
192
  },
193
193
  rules: {
194
- 'no-unused-vars': ['error', {
195
- ignoreRestSiblings: true,
194
+ 'no-unused-vars': ['warn', {
195
+ args: 'after-used',
196
+ argsIgnorePattern: '^_',
197
+ varsIgnorePattern: '^_',
196
198
  destructuredArrayIgnorePattern: '^_',
199
+ ignoreRestSiblings: true,
200
+ caughtErrors: 'none',
197
201
  }],
198
202
  },
199
203
  },