@lark-apaas/coding-steering 0.1.43 → 0.1.44-alpha.20260901072248

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.43",
3
+ "version": "0.1.44-alpha.20260901072248",
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
+ }
@@ -443,7 +443,7 @@ NestJS 自己不读 env。直连 NestJS 端口 → header 缺失 → `req.userCo
443
443
 
444
444
  - **框架**: React 19 + TypeScript
445
445
  - **路由**: React Router DOM v6
446
- - **样式**: styled-jsx + tailwindcss(语义化 token)。styled-jsx 使用前提见下方"样式开发"
446
+ - **样式**: tailwindcss(语义化 token)为主,复杂 CSS 用 CSS Modules(`*.module.css`),动态计算值用行内 `style`
447
447
  - **UI 组件库**: shadcn/ui — Use components for functionality, heavily style them
448
448
  - **图表**: ReactECharts,**开发前必须调用 `/charts-skill`**
449
449
  - **图标**: Lucide React(唯一图标库,禁止 Emoji 和其他图标库)
@@ -535,7 +535,7 @@ import { axiosForBackend } from '@lark-apaas/client-toolkit/utils/getAxiosForBac
535
535
  ```
536
536
  需要写样式?
537
537
  ├─ 基础布局/间距/颜色 → Tailwind ✅
538
- ├─ 复杂动画/伪元素/高级CSS → styled-jsx
538
+ ├─ 复杂动画/伪元素/高级CSS → CSS Modules(`*.module.css`)✅
539
539
  └─ JS动态计算值 → 行内 style ✅
540
540
  ```
541
541
 
@@ -548,10 +548,12 @@ import { axiosForBackend } from '@lark-apaas/client-toolkit/utils/getAxiosForBac
548
548
  - **arbitrary values 中空格用下划线**:`from-[hsl(215_60%_18%)]` 非 `from-[hsl(215 60% 18%)]`
549
549
  - `tailwind-theme.css` 自定义属性用 `hsl(H, S%, L%)` 格式(非 `23 10% 23%`)
550
550
 
551
- ### styled-jsx 规范
551
+ ### CSS Modules 规范
552
552
 
553
- - **技术栈一致性**:仅在已配置 styled-jsx 插件的项目中使用。`package.json` 无 `styled-jsx` 依赖则**禁用**,否则运行时 SyntaxError
554
- - **禁止动态插值**:`<style jsx>` 内禁止 `${...}` 等表达式(会卡死)。动态值放 CSS 变量,用 `var(--xxx)` 引用
553
+ - 文件名:`ComponentName.module.css`,与组件同目录
554
+ - 导入用 `import styles from './ComponentName.module.css'`,通过 `className={styles.foo}` 引用
555
+ - 类名用 camelCase,避免使用连字符(`styles.myClass` 而非 `styles['my-class']`)
556
+ - 全局样式(如动画 keyframes、CSS 变量)放在 `client/src/index.css` 或 `tailwind-theme.css`
555
557
 
556
558
  ### 布局/排版
557
559