@resolid/config 3.0.3 → 3.0.5

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
8
+ pnpm add -D @resolid/config eslint prettier
9
9
  ```
10
10
 
11
11
  ## TypeScript 配置
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolid/config",
3
- "version": "3.0.3",
3
+ "version": "3.0.5",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "Eslint and Prettier config",
@@ -29,13 +29,13 @@
29
29
  "@eslint/js": "^9.17.0",
30
30
  "eslint-plugin-jsx-a11y": "^6.10.2",
31
31
  "eslint-plugin-n": "^17.15.1",
32
- "eslint-plugin-react": "^7.37.2",
32
+ "eslint-plugin-react": "^7.37.3",
33
33
  "eslint-plugin-react-compiler": "beta",
34
34
  "eslint-plugin-react-hooks": "^5.1.0",
35
35
  "eslint-plugin-react-refresh": "^0.4.16",
36
36
  "globals": "^15.14.0",
37
37
  "prettier-plugin-organize-imports": "^4.1.0",
38
- "typescript-eslint": "^8.18.1"
38
+ "typescript-eslint": "^8.18.2"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@arethetypeswrong/cli": "^0.17.2",
@@ -43,12 +43,20 @@
43
43
  "@changesets/cli": "^2.27.11",
44
44
  "@commitlint/cli": "^19.6.1",
45
45
  "@commitlint/config-conventional": "^19.6.0",
46
+ "eslint": "^9.17.0",
46
47
  "lefthook": "^1.10.0",
47
- "prettier": "^3.4.2"
48
+ "prettier": "^3.4.2",
49
+ "typescript": "^5.7.2"
48
50
  },
49
51
  "peerDependencies": {
50
- "eslint": "^9.16.0",
51
- "prettier": "^3.4.2"
52
+ "eslint": "^9.17.0",
53
+ "prettier": "^3.4.2",
54
+ "typescript": "^5.7.2"
55
+ },
56
+ "peerDependenciesMeta": {
57
+ "typescript": {
58
+ "optional": true
59
+ }
52
60
  },
53
61
  "engines": {
54
62
  "node": ">=20.0.0"
@@ -1,5 +1,6 @@
1
1
  import globals from "globals";
2
2
 
3
+ // noinspection JSUnusedGlobalSymbols
3
4
  /** @type {import('eslint').Linter.FlatConfig[]} */
4
5
  export default [
5
6
  {
@@ -1,6 +1,7 @@
1
1
  import n from "eslint-plugin-n";
2
2
  import globals from "globals";
3
3
 
4
+ // noinspection JSUnusedGlobalSymbols
4
5
  /** @type {import('eslint').Linter.FlatConfig[]} */
5
6
  export default [
6
7
  {
@@ -5,6 +5,7 @@ import reactHooks from "eslint-plugin-react-hooks";
5
5
  import reactRefresh from "eslint-plugin-react-refresh";
6
6
  import eslintTypescript from "./eslint.typescript.js";
7
7
 
8
+ // noinspection JSUnusedGlobalSymbols,JSUnresolvedReference
8
9
  /** @type {import('eslint').Linter.FlatConfig[]} */
9
10
  export default [
10
11
  ...eslintTypescript,