{"id":24628134,"url":"https://github.com/gavinbirkhoff/cleanness","last_synced_at":"2025-03-20T02:28:47.763Z","repository":{"id":57685334,"uuid":"478130651","full_name":"GavinBirkhoff/cleanness","owner":"GavinBirkhoff","description":"A collection of configuration files containing prettier, eslint, stylelint, and cli","archived":false,"fork":false,"pushed_at":"2023-01-19T11:34:19.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T05:14:19.672Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/GavinBirkhoff.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}},"created_at":"2022-04-05T13:01:14.000Z","updated_at":"2022-04-05T14:56:53.000Z","dependencies_parsed_at":"2023-02-10T23:31:19.301Z","dependency_job_id":null,"html_url":"https://github.com/GavinBirkhoff/cleanness","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GavinBirkhoff%2Fcleanness","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GavinBirkhoff%2Fcleanness/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GavinBirkhoff%2Fcleanness/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GavinBirkhoff%2Fcleanness/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GavinBirkhoff","download_url":"https://codeload.github.com/GavinBirkhoff/cleanness/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244538159,"owners_count":20468665,"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":[],"created_at":"2025-01-25T05:14:22.100Z","updated_at":"2025-03-20T02:28:47.739Z","avatar_url":"https://github.com/GavinBirkhoff.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cleanness\n\nA collection of configuration files containing prettier, eslint, stylelint, and cli. thank umi.\n\n# Use\n\n安装\n\n```bash\nnpm i cleanness --save-dev\nyarn add cleanness -D\n```\n\nCommand to initialize related files\n\n```\ncleanness init\n```\n\nor Manually add related files\n\nin `.eslintrc.js`\n\n```js\nmodule.exports = {\n  extends: [require.resolve('cleanness/dist/eslint')],\n\n  // in antd-design-pro\n  globals: {\n    ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: true,\n    REACT_APP_ENV: true, // in umi\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('cleanness/dist/stylelint')],\n  rules: {\n    // your rules\n  },\n}\n```\n\nin `.prettierrc.js`\n\n```js\nconst cleanness = require('cleanness')\n\nmodule.exports = {\n  ...cleanness.prettier,\n}\n```\n\nor Add a .cleanness.config.js to your root\n\n```js\n//.cleanness.config.js\nmodule.exports = {\n  // open cleanness verify\n  strict: true,\n  // User-defined verification rules\n  verify:\n    /^(((\\ud83c[\\udf00-\\udfff])|(\\ud83d[\\udc00-\\ude4f\\ude80-\\udeff])|[\\u2600-\\u2B55]) )?(revert: )?(feat|fix|docs|UI|refactor|perf|workflow|build|CI|typos|chore|tests|types|wip|release|dep|locale)(\\(.+\\))?: .{1,50}/,\n  // call it when verify was failed\n  verifyMsg: function (locale) {\n    // locale\n    // echo log\n  },\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinbirkhoff%2Fcleanness","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgavinbirkhoff%2Fcleanness","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinbirkhoff%2Fcleanness/lists"}