{"id":25303583,"url":"https://github.com/apptools-lab/applint","last_synced_at":"2025-08-12T18:41:07.972Z","repository":{"id":41180523,"uuid":"411968550","full_name":"apptools-lab/AppLint","owner":"apptools-lab","description":"淘宝前端工程最佳实践检查方案","archived":false,"fork":false,"pushed_at":"2023-04-18T08:16:56.000Z","size":451,"stargazers_count":62,"open_issues_count":0,"forks_count":12,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T19:14:06.492Z","etag":null,"topics":["codemod","commitlint","eslint","lint","stylelint"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apptools-lab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-30T07:37:52.000Z","updated_at":"2024-12-28T12:52:46.000Z","dependencies_parsed_at":"2024-06-18T19:45:20.297Z","dependency_job_id":"b7881cd6-2d3f-4f88-9274-136bb8bcaab9","html_url":"https://github.com/apptools-lab/AppLint","commit_stats":{"total_commits":123,"total_committers":7,"mean_commits":"17.571428571428573","dds":0.5691056910569106,"last_synced_commit":"ead59925a45a578bcf8ae5a92460c5f5d52f6056"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apptools-lab%2FAppLint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apptools-lab%2FAppLint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apptools-lab%2FAppLint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apptools-lab%2FAppLint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apptools-lab","download_url":"https://codeload.github.com/apptools-lab/AppLint/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238618165,"owners_count":19501993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codemod","commitlint","eslint","lint","stylelint"],"created_at":"2025-02-13T07:37:03.007Z","updated_at":"2025-02-13T07:37:03.511Z","avatar_url":"https://github.com/apptools-lab.png","language":"TypeScript","readme":"# AppLint\n\n## 介绍\n\nAppLint 是大淘宝前端最佳实践检查方案。通过统一代码规范、推广最佳实践以及代码质量检查和修复，提高前端项目质量和稳定性。\n\n### 规范\n\n基于社区流行的 Lint 工具，结合淘宝前端代码规范，制定以下的规则包：\n\n| 规范                                                         | Lint 工具                                  | 规则包                                                       |\n| :----------------------------------------------------------- | :----------------------------------------- | :----------------------------------------------------------- |\n| 《JavaScript 编码规范》\u003cbr /\u003e《TypeScript 编码规范》\u003cbr /\u003e《React 编码规范》\u003cbr /\u003e《Rax 编码规范》\u003cbr /\u003e | [ESLint](http://eslint.org/)               | [@applint/eslint-config](https://www.npmjs.com/package/@applint/eslint-config) |\n| 《CSS 编码规范》                                             | [Stylelint](https://stylelint.io/)         | [@applint/stylelint-config](https://www.npmjs.com/package/@applint/stylelint-config) |\n| 《Git 提交规范》                                                 | [commitlint](https://commitlint.js.org/#/) | [@applint/commitlint-config](https://www.npmjs.com/package/@applint/commitlint-config) |\n\n为了降低 Lint 工具的使用成本，我们封装了 [@applint/spec](https://www.npmjs.com/package/@applint/spec) 这个 npm 包，方便开发者快速接入 Lint 规则到项目中。\n\n### API\n\n结合以上的规范，AppLint 提供 Node API，可快速对文件级别和项目级别的代码进行检查和修复：\n\n| npm 包                                                       | 说明                                                         |\n| :----------------------------------------------------------- | :----------------------------------------------------------- |\n| [@applint/applint](https://www.npmjs.com/package/@applint/applint) | 基于 ESLint、Stylelint 等代码检查工具以及大淘宝前端代码规范，封装对文件级别的代码进行检查和修复的 Node API |\n| [@applint/projectlint](https://www.npmjs.com/package/@applint/projectlint) | 提供项目级别检测和修复 Node API，目前包括 Codemod 检查和修复，未来会支持项目依赖检查（冗余包和风险包）、项目 bundle 体积大小检查 |\n\n## License\n\n[MIT](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapptools-lab%2Fapplint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapptools-lab%2Fapplint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapptools-lab%2Fapplint/lists"}