@planet-matrix/mobius-mono 0.5.0 → 0.6.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/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @planet-matrix/mobius-mono
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 920a7c3: Turn off promise/prefer-await-to-then.
8
+ - 3d3c2ff: Update oxlint and oxfmt rules.
9
+
10
+ ### Patch Changes
11
+
12
+ - 65b0a9a: Add options for typescript/no-base-to-string.
13
+
14
+ ## 0.5.1
15
+
16
+ ### Patch Changes
17
+
18
+ - 956b69e: Turn of no-self-assign rule.
19
+
20
+ 自命名在很多时候能够提升代码可读性,更明确地表达业务意图。
21
+
3
22
  ## 0.5.0
4
23
 
5
24
  ### Minor Changes
package/README.md CHANGED
@@ -13,10 +13,12 @@ Mobius Mono 是一个用于对项目开发进行规范的项目,目标是将
13
13
 
14
14
  ## Todos & Drafts
15
15
 
16
- - [ ] 当 oxfmt 支持在 monorepo 中为不同的包添加不同的配置之后将其引入。
16
+ - [ ] 当 oxfmt 支持在 monorepo 中为不同的包添加不同的配置之后将其引入(https://oxc.rs/docs/guide/usage/formatter/unsupported-features.html)。
17
17
  - [ ] 当 oxlint `extends` 字段支持指定包产物时,更新所有相关配置。
18
18
  - [ ] `change publish` 支持 dry-run 参数。
19
19
  - [ ] 规则稳定之后,将其实现为代码。
20
+ - [ ] 考虑添加 Project Structure 相关的规则。
21
+ - [ ] 实现一个自动检测 oxlint 官方规则是否有增减的机制。
20
22
 
21
23
  几乎所有操作都可以理解为对文件的操作,包括但不限于:
22
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planet-matrix/mobius-mono",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Mobius Mono 是一个用于对项目开发进行规范的项目,目标是将项目开发中与核心业务逻辑无关的部分全部标准化,一方面开发者可以专注于业务逻辑的开发,另一方面不同项目可以共享相同的基础设施,从而提升整体的开发体验、协同效率和交付质量。同时,清晰明确的规范也能够提高人与 AI 协同开发或全 AI 驱动开发的效率和质量。",
5
5
  "keywords": [
6
6
  "mobius",
@@ -64,16 +64,16 @@
64
64
  },
65
65
  "dependencies": {
66
66
  "zx": "^8.8.5",
67
- "@opentui/core": "^0.1.67"
67
+ "@opentui/core": "^0.1.75"
68
68
  },
69
69
  "devDependencies": {
70
- "@types/bun": "^1.3.5",
71
- "@types/node": "^25.0.3",
72
- "oxlint": "^1.37.0",
73
- "oxlint-tsgolint": "^0.10.1",
74
- "oxfmt": "^0.22.0",
75
- "typescript": "^5.9.0",
76
- "@typescript/native-preview": "^7.0.0-dev.20260101.1"
70
+ "@types/bun": "^1.3.8",
71
+ "@types/node": "^25.1.0",
72
+ "oxlint": "^1.42.0",
73
+ "oxlint-tsgolint": "^0.11.4",
74
+ "oxfmt": "^0.27.0",
75
+ "typescript": "^5.9.3",
76
+ "@typescript/native-preview": "^7.0.0-dev.20260130.1"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "@changesets/cli": "^2.29.8"
@@ -1,15 +1,21 @@
1
1
  {
2
2
  "$schema": "../../../node_modules/oxfmt/configuration_schema.json",
3
3
  "ignorePatterns": [],
4
+ "overrides": [],
4
5
  "arrowParens": "always",
5
6
  "bracketSameLine": false,
6
7
  "bracketSpacing": true,
7
8
  "embeddedLanguageFormatting": "auto",
8
9
  "endOfLine": "lf",
10
+ "experimentalSortImports": null,
11
+ "experimentalSortPackageJson": false,
12
+ "experimentalTailwindcss": null,
13
+ "htmlWhitespaceSensitivity": "css",
9
14
  "insertFinalNewline": true,
10
15
  "jsxSingleQuote": false,
11
16
  "objectWrap": "preserve",
12
17
  "printWidth": 200,
18
+ "proseWrap": "preserve",
13
19
  "quoteProps": "as-needed",
14
20
  "semi": false,
15
21
  "singleAttributePerLine": false,
@@ -143,7 +143,7 @@
143
143
  "error"
144
144
  ],
145
145
  "eslint/no-self-assign": [
146
- "error"
146
+ "off"
147
147
  ],
148
148
  "eslint/no-setter-return": [
149
149
  "error"
@@ -299,7 +299,11 @@
299
299
  "error"
300
300
  ],
301
301
  "typescript/no-base-to-string": [
302
- "error"
302
+ "error",
303
+ {
304
+ "checkUnknown": false,
305
+ "ignoredTypeNames": []
306
+ }
303
307
  ],
304
308
  "typescript/no-duplicate-enum-values": [
305
309
  "error"
@@ -436,6 +440,9 @@
436
440
  "eslint/class-methods-use-this": [
437
441
  "off"
438
442
  ],
443
+ "eslint/complexity": [
444
+ "off"
445
+ ],
439
446
  "eslint/default-case": [
440
447
  "error"
441
448
  ],
@@ -763,7 +770,7 @@
763
770
  "off"
764
771
  ],
765
772
  "typescript/no-unnecessary-type-arguments": [
766
- "error"
773
+ "off"
767
774
  ],
768
775
  "typescript/no-unnecessary-type-assertion": [
769
776
  "error"
@@ -1079,6 +1086,9 @@
1079
1086
  "unicorn/no-hex-escape": [
1080
1087
  "error"
1081
1088
  ],
1089
+ "unicorn/no-immediate-mutation": [
1090
+ "error"
1091
+ ],
1082
1092
  "unicorn/no-instanceof-array": [
1083
1093
  "error"
1084
1094
  ],
@@ -1249,6 +1259,9 @@
1249
1259
  "eslint/max-params": [
1250
1260
  "off"
1251
1261
  ],
1262
+ "eslint/max-statements": [
1263
+ "off"
1264
+ ],
1252
1265
  "eslint/new-cap": [
1253
1266
  "error",
1254
1267
  {
@@ -1482,10 +1495,7 @@
1482
1495
  "error"
1483
1496
  ],
1484
1497
  "promise/prefer-await-to-then": [
1485
- "error",
1486
- {
1487
- "strict": true
1488
- }
1498
+ "off"
1489
1499
  ],
1490
1500
  "promise/prefer-catch": [
1491
1501
  "error"
@@ -1746,6 +1756,19 @@
1746
1756
  "promise/no-return-in-finally": [
1747
1757
  "error"
1748
1758
  ],
1759
+ "typescript/prefer-optional-chain": [
1760
+ "error",
1761
+ {
1762
+ "allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing": false,
1763
+ "checkAny": true,
1764
+ "checkBigInt": true,
1765
+ "checkBoolean": true,
1766
+ "checkNumber": true,
1767
+ "checkString": true,
1768
+ "checkUnknown": true,
1769
+ "requireNullish": false,
1770
+ }
1771
+ ]
1749
1772
  }
1750
1773
  }
1751
1774
  ]