Linting&Formatting MOC
代码规范、ESLint 与 Prettier、Git hooks 相关的入口 MOC
#eng
#moc
#seed
Linting & Formatting MOC
知识总览
filters:
and:
- 'file.ext == "md"'
- 'file.inFolder("z")'
- 'this.file.links.contains(file)'
- 'file.path != this.file.path'
formulas:
knowledge: 'file.asLink(title)'
properties:
formula.knowledge:
displayName: 知识
note.description:
displayName: Description
note.mastery:
displayName: Mastery
views:
- type: table
name: 知识总览
order:
- formula.knowledge
- note.description
- note.mastery
columnSize:
formula.knowledge: 280
note.description: 760
note.mastery: 56
本页为代码规范与格式化相关入口,包含 ESLint / Prettier 配置、Husky + lint-staged、提交规范与 CI 中的 Lint 流程。
快速入口
- ESLint / Prettier: ESLint / Prettier
- Husky / lint-staged:husky-lint-staged
- 项目示例配置:setup-eslint-prettier
📂 相关笔记(手工索引)
- setup-eslint-prettier
- husky-lint-staged
- copilot-cloud-agent(包含
.prettierrc/eslint.config.js示例)
说明:将团队级规范和 CI lint 流程放在深度笔记中并添加
moc/parent: "Linting & Formatting MOC"。