@lark-apaas/coding-steering 0.1.44 → 0.1.45-alpha.20260902135000

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,11 +1,14 @@
1
1
  {
2
2
  "name": "@lark-apaas/coding-steering",
3
- "version": "0.1.44",
3
+ "version": "0.1.45-alpha.20260902135000",
4
4
  "description": "Stack-specific steering content for miaoda-coding templates",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "steering"
8
8
  ],
9
+ "scripts": {
10
+ "lint:md": "markdownlint 'steering/**/*.md' --ignore 'steering/**/skills/**' --ignore 'steering/**/skills_common/**' --ignore 'steering/**/skills_local/**'"
11
+ },
9
12
  "devDependencies": {
10
13
  "markdownlint-cli": "^0.47.0"
11
14
  },
@@ -17,8 +20,5 @@
17
20
  "miaoda",
18
21
  "coding-steering"
19
22
  ],
20
- "license": "MIT",
21
- "scripts": {
22
- "lint:md": "markdownlint 'steering/**/*.md' --ignore 'steering/**/skills/**' --ignore 'steering/**/skills_common/**' --ignore 'steering/**/skills_local/**'"
23
- }
24
- }
23
+ "license": "MIT"
24
+ }
@@ -449,7 +449,7 @@ NestJS 自己不读 env。直连 NestJS 端口 → header 缺失 → `req.userCo
449
449
 
450
450
  - **框架**: React 19 + TypeScript
451
451
  - **路由**: React Router DOM v6
452
- - **样式**: styled-jsx + tailwindcss(语义化 token)。styled-jsx 使用前提见下方"样式开发"
452
+ - **样式**: tailwindcss(语义化 token)为主,复杂 CSS 用 CSS Modules(`*.module.css`),动态计算值用行内 `style`
453
453
  - **UI 组件库**: shadcn/ui — Use components for functionality, heavily style them
454
454
  - **图表**: ReactECharts,**开发前必须调用 `/charts-skill`**
455
455
  - **图标**: Lucide React(唯一图标库,禁止 Emoji 和其他图标库)
@@ -541,7 +541,7 @@ import { axiosForBackend } from '@lark-apaas/client-toolkit/utils/getAxiosForBac
541
541
  ```
542
542
  需要写样式?
543
543
  ├─ 基础布局/间距/颜色 → Tailwind ✅
544
- ├─ 复杂动画/伪元素/高级CSS → styled-jsx ✅
544
+ ├─ 复杂动画/伪元素/高级CSS → CSS Modules(`*.module.css`)✅
545
545
  └─ JS动态计算值 → 行内 style ✅
546
546
  ```
547
547
 
@@ -554,10 +554,6 @@ import { axiosForBackend } from '@lark-apaas/client-toolkit/utils/getAxiosForBac
554
554
  - **arbitrary values 中空格用下划线**:`from-[hsl(215_60%_18%)]` 非 `from-[hsl(215 60% 18%)]`
555
555
  - `tailwind-theme.css` 自定义属性用 `hsl(H, S%, L%)` 格式(非 `23 10% 23%`)
556
556
 
557
- ### styled-jsx 规范
558
-
559
- - **技术栈一致性**:仅在已配置 styled-jsx 插件的项目中使用。`package.json` 无 `styled-jsx` 依赖则**禁用**,否则运行时 SyntaxError
560
- - **禁止动态插值**:`<style jsx>` 内禁止 `${...}` 等表达式(会卡死)。动态值放 CSS 变量,用 `var(--xxx)` 引用
561
557
 
562
558
  ### 布局/排版
563
559