{"id":15021957,"url":"https://github.com/fengyinchao/eslint-plugin-custom","last_synced_at":"2026-01-03T00:54:48.736Z","repository":{"id":57230267,"uuid":"302382075","full_name":"fengyinchao/eslint-plugin-custom","owner":"fengyinchao","description":"一个自定义规则的 ESLint Plugin，用于规范代码","archived":false,"fork":false,"pushed_at":"2022-08-24T11:11:44.000Z","size":147,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-25T01:20:41.052Z","etag":null,"topics":["angular","change","eslint-rules","ngrx","rxjs6","typescript"],"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/fengyinchao.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-10-08T15:19:37.000Z","updated_at":"2022-08-21T03:28:44.000Z","dependencies_parsed_at":"2022-09-14T21:41:33.427Z","dependency_job_id":null,"html_url":"https://github.com/fengyinchao/eslint-plugin-custom","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengyinchao%2Feslint-plugin-custom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengyinchao%2Feslint-plugin-custom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengyinchao%2Feslint-plugin-custom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengyinchao%2Feslint-plugin-custom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fengyinchao","download_url":"https://codeload.github.com/fengyinchao/eslint-plugin-custom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243941422,"owners_count":20372241,"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":["angular","change","eslint-rules","ngrx","rxjs6","typescript"],"created_at":"2024-09-24T19:57:15.749Z","updated_at":"2026-01-03T00:54:48.697Z","avatar_url":"https://github.com/fengyinchao.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-custom\n\n这是一个自定义规则的 ESLint Plugin，用于规范业务代码，当前支持规则有：\n\n\n- [x] style-generate\n      RN中辅助生成 styles.xxx\n- [x] scrollview-flatlist-sectionlist-use-scrollIndicatorInsets\n      RN 中的组件 scrollview flatlist sectionlist 需要显示使用 scrollIndicatorInsets 属性以规避 ios12 上的问题\n- [x] file-header-annotation\n      文件头必须要有注释\n- [x] no-first\n      rxjs 中不允许使用 no-first\n- [x] no-useless-optional-chain\n      ngrx reducer 中创建 selector 时不要冗余使用可选链特性\n- [x] normal-timer\n      electron 渲染进程中使用 setTimeout/setInterval 要加 window, 以区分 nodejs\n- [x] use-onpush\n      Angular 组件请使用 onpush 而非 default\n- [x] extract-log-url\n      Angular 组件中打日志时 clog 参数请使用枚举，支持将 clog 参数自动提取生成枚举文件\n\n## Installation\n\n```\n$ npm install @fengyinchao/eslint-plugin-custom --save-dev\n```\n\n## Usage\n\nAdd `@fengyinchao/custom` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:\n\n```json\n{\n  \"plugins\": [\"@fengyinchao/custom\"]\n}\n```\n\nThen configure the rules you want to use under the rules section.\n\n```json\n{\n  \"rules\": {\n    \"@fengyinchao/custom/rule-name\": 2\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffengyinchao%2Feslint-plugin-custom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffengyinchao%2Feslint-plugin-custom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffengyinchao%2Feslint-plugin-custom/lists"}