@resolid/config 3.10.3 → 4.0.0

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/README.md CHANGED
@@ -5,7 +5,7 @@ Resolid 通用配置, 包含了 `TypeScript`, `Eslint` 和 `Prettier` 的基础
5
5
  ## 安装
6
6
 
7
7
  ```bash
8
- pnpm add -D @resolid/config eslint prettier
8
+ pnpm add -D @resolid/config eslint prettier typescript
9
9
  ```
10
10
 
11
11
  ## TypeScript 配置
@@ -16,7 +16,7 @@ pnpm add -D @resolid/config eslint prettier
16
16
 
17
17
  ```json
18
18
  {
19
- "extends": "@resolid/config/tsconfig/base"
19
+ "extends": "@resolid/config/tsconfig/base.json"
20
20
  }
21
21
  ```
22
22
 
@@ -24,7 +24,7 @@ pnpm add -D @resolid/config eslint prettier
24
24
 
25
25
  ```json
26
26
  {
27
- "extends": "@resolid/config/tsconfig/react"
27
+ "extends": "@resolid/config/tsconfig/react.json"
28
28
  }
29
29
  ```
30
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolid/config",
3
- "version": "3.10.3",
3
+ "version": "4.0.0",
4
4
  "description": "Eslint and Prettier config",
5
5
  "keywords": [
6
6
  "resolid",
@@ -21,38 +21,37 @@
21
21
  "./*": {
22
22
  "types": "./src/*.d.ts",
23
23
  "import": "./src/*.js"
24
- },
25
- "./tsconfig/*": "./tsconfig/*.json"
24
+ }
26
25
  },
27
26
  "files": [
28
27
  "src",
29
28
  "tsconfig"
30
29
  ],
31
30
  "dependencies": {
32
- "@eslint/js": "^9.39.1",
31
+ "@eslint/js": "^9.39.2",
33
32
  "eslint-plugin-erasable-syntax-only": "^0.4.0",
34
33
  "eslint-plugin-jsx-a11y": "^6.10.2",
35
- "eslint-plugin-n": "^17.23.1",
34
+ "eslint-plugin-n": "^17.23.2",
36
35
  "eslint-plugin-react": "^7.37.5",
37
36
  "eslint-plugin-react-hooks": "^7.0.1",
38
- "eslint-plugin-react-refresh": "^0.4.24",
37
+ "eslint-plugin-react-refresh": "^0.4.26",
39
38
  "globals": "^16.5.0",
40
39
  "prettier-plugin-organize-imports": "^4.3.0",
41
- "typescript-eslint": "^8.48.0"
40
+ "typescript-eslint": "^8.53.1"
42
41
  },
43
42
  "devDependencies": {
44
- "@changesets/cli": "^2.29.7",
45
- "@commitlint/cli": "^20.1.0",
46
- "@commitlint/config-conventional": "^20.0.0",
43
+ "@changesets/cli": "^2.29.8",
44
+ "@commitlint/cli": "^20.3.1",
45
+ "@commitlint/config-conventional": "^20.3.1",
47
46
  "@svitejs/changesets-changelog-github-compact": "^1.2.0",
48
- "eslint": "^9.39.1",
49
- "lefthook": "^2.0.4",
50
- "prettier": "^3.6.2",
47
+ "eslint": "^9.39.2",
48
+ "lefthook": "^2.0.15",
49
+ "prettier": "^3.8.1",
51
50
  "typescript": "^5.9.3"
52
51
  },
53
52
  "peerDependencies": {
54
53
  "eslint": "^9.39.1",
55
- "prettier": "^3.6.2",
54
+ "prettier": "^3.7.4",
56
55
  "typescript": "^5.9.3"
57
56
  },
58
57
  "peerDependenciesMeta": {
@@ -20,14 +20,16 @@ export default defineConfig(javascript, {
20
20
  "@typescript-eslint/prefer-function-type": "error",
21
21
  "@typescript-eslint/prefer-for-of": "error",
22
22
  "@typescript-eslint/consistent-type-imports": "error",
23
+ "no-unused-vars": "off",
23
24
  "@typescript-eslint/no-unused-vars": [
24
25
  "error",
25
26
  {
26
- args: "all",
27
+ args: "after-used",
27
28
  argsIgnorePattern: "^_",
28
29
  caughtErrors: "all",
29
30
  caughtErrorsIgnorePattern: "^_",
30
31
  destructuredArrayIgnorePattern: "^_",
32
+ vars: "all",
31
33
  varsIgnorePattern: "^_",
32
34
  ignoreRestSiblings: true,
33
35
  },