What is arkts-code-linter?
基于华为 HarmonyOS NEXT 官方文档和 ArkTS 规范的代码检查工具。自动检测代码中的规范违规、性能问题和潜在错误,确保代码符合 HarmonyOS 应用开发最佳实践。 Source: clmc2025/vignette.
基于华为 HarmonyOS NEXT 官方文档和 ArkTS 规范的代码检查工具。自动检测代码中的规范违规、性能问题和潜在错误,确保代码符合 HarmonyOS 应用开发最佳实践。
Quickly install arkts-code-linter AI skill to your development environment via command line
Source: clmc2025/vignette.
| no-any | 禁止使用 any 类型 | error | false | | no-unknown | 禁止使用 unknown 类型 | error | false | | static-method-this | 静态方法中禁止使用 this | error | true | | no-untyped-objects | 禁止无类型对象字面量 | error | false | | component-syntax | 组件语法规范检查 | error | false | | proper-decorator-use | 装饰器正确使用 | error | false | | component-root-node | 组件根节点规则 | error | false |
| state-management | 状态管理最佳实践 | warning | false | | lazy-for-each | 列表必须使用 LazyForEach | error | false | | no-px-unit | 禁止硬编码 px 单位 | error | true | | use-vp-fp | 必须使用 vp/fp 单位 | error | true | | indent | 缩进规范 | error | true | | naming-convention | 命名规范检查 | error | false |
Stable fields and commands for AI/search citations.
npx skills add https://github.com/clmc2025/vignette --skill arkts-code-linter基于华为 HarmonyOS NEXT 官方文档和 ArkTS 规范的代码检查工具。自动检测代码中的规范违规、性能问题和潜在错误,确保代码符合 HarmonyOS 应用开发最佳实践。 Source: clmc2025/vignette.
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/clmc2025/vignette --skill arkts-code-linter Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw
https://github.com/clmc2025/vignette