{"id":13496234,"url":"https://github.com/umijs/fabric","last_synced_at":"2025-05-15T07:03:50.506Z","repository":{"id":37692289,"uuid":"193338266","full_name":"umijs/fabric","owner":"umijs","description":"💪严格但是不严苛的编码规范","archived":false,"fork":false,"pushed_at":"2023-12-05T13:30:09.000Z","size":741,"stargazers_count":644,"open_issues_count":48,"forks_count":98,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-15T07:03:36.164Z","etag":null,"topics":["antd-design-pro","eslint","fabric","stylelint","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/umijs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-06-23T11:09:35.000Z","updated_at":"2025-04-22T12:10:32.000Z","dependencies_parsed_at":"2024-01-16T10:36:49.546Z","dependency_job_id":null,"html_url":"https://github.com/umijs/fabric","commit_stats":{"total_commits":232,"total_committers":26,"mean_commits":8.923076923076923,"dds":"0.15086206896551724","last_synced_commit":"e55d8342e8cb0b7100632dcc23165aeb0d0083ce"},"previous_names":[],"tags_count":71,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umijs%2Ffabric","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umijs%2Ffabric/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umijs%2Ffabric/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umijs%2Ffabric/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umijs","download_url":"https://codeload.github.com/umijs/fabric/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254291961,"owners_count":22046424,"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":["antd-design-pro","eslint","fabric","stylelint","typescript"],"created_at":"2024-07-31T19:01:44.262Z","updated_at":"2025-05-15T07:03:50.487Z","avatar_url":"https://github.com/umijs.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003c!-- @format --\u003e\n\n# umi-fabric\n\n一个包含 prettier，eslint，stylelint 的配置文件合集\n\nA collection of configuration files containing prettier, eslint, stylelint\n\n# Use\n\n安装\n\n```bash\nnpm i @umijs/fabric --save-dev\nyarn add @umijs/fabric -D\n```\n\nin `.eslintrc.js`\n\n```js\nmodule.exports = {\n  extends: [require.resolve('@umijs/fabric/dist/eslint')],\n\n  // in antd-design-pro\n  globals: {\n    ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: true,\n    page: true,\n  },\n\n  rules: {\n    // your rules\n  },\n};\n```\n\nin `.stylelintrc.js`\n\n```js\nmodule.exports = {\n  extends: [require.resolve('@umijs/fabric/dist/stylelint')],\n  rules: {\n    // your rules\n  },\n};\n```\n\nin `.prettierrc.js`\n\n```js\nconst fabric = require('@umijs/fabric');\n\nmodule.exports = {\n  ...fabric.prettier,\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumijs%2Ffabric","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumijs%2Ffabric","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumijs%2Ffabric/lists"}