{"id":21171447,"url":"https://github.com/kegi/eslint-plugin-standard-cra","last_synced_at":"2026-04-17T01:02:46.343Z","repository":{"id":44164116,"uuid":"352328735","full_name":"kegi/eslint-plugin-standard-cra","owner":"kegi","description":"A single dev dependency for strict and modern React linting based on StandardJS","archived":false,"fork":false,"pushed_at":"2024-04-28T22:49:25.000Z","size":76,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-24T00:57:30.786Z","etag":null,"topics":["cra","eslint","react","standardjs","typescript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/kegi.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-03-28T12:53:44.000Z","updated_at":"2024-04-28T22:49:29.000Z","dependencies_parsed_at":"2025-05-11T00:01:24.210Z","dependency_job_id":"ccc4b732-41d0-49f8-816e-b8629fc38559","html_url":"https://github.com/kegi/eslint-plugin-standard-cra","commit_stats":{"total_commits":12,"total_committers":2,"mean_commits":6.0,"dds":0.08333333333333337,"last_synced_commit":"0c5b98d326ada860d9e8d970b274b21de8b3c835"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/kegi/eslint-plugin-standard-cra","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kegi%2Feslint-plugin-standard-cra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kegi%2Feslint-plugin-standard-cra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kegi%2Feslint-plugin-standard-cra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kegi%2Feslint-plugin-standard-cra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kegi","download_url":"https://codeload.github.com/kegi/eslint-plugin-standard-cra/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kegi%2Feslint-plugin-standard-cra/sbom","scorecard":{"id":553701,"data":{"date":"2025-08-11","repo":{"name":"github.com/kegi/eslint-plugin-standard-cra","commit":"ea9a589b2b9bdabd5f81f9e36c904ef92c9da159"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/18 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T11:43:34.280Z","repository_id":44164116,"created_at":"2025-08-20T11:43:34.280Z","updated_at":"2025-08-20T11:43:34.280Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31910584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cra","eslint","react","standardjs","typescript"],"created_at":"2024-11-20T16:05:41.544Z","updated_at":"2026-04-17T01:02:46.311Z","avatar_url":"https://github.com/kegi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 style=\"text-align:center\"\u003eeslint-plugin-standard-cra\u003c/h1\u003e\n\u003cp style=\"text-align:center\"\u003eA single dev dependency for strict and modern \u003cstrong\u003eReact\u003c/strong\u003e linting based on \u003cstrong\u003eStandardJS\u003c/strong\u003e\u003c/p\u003e\n\u003cdiv style=\"text-align:center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/React+JSX-YES-success\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Typescript_Support-YES-success\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Semi-OFF-important\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Comma--dangle-ON-success\"\u003e\n\u003c/div\u003e\n\u003cdiv style=\"text-align:center\"\u003e\n  \u003cimg src=\"./header.png\" /\u003e\n\u003c/div\u003e\n\n## Installation\n\n```bash\nyarn add eslint-plugin-standard-cra\n# OR\nnpm install eslint-plugin-standard-cra\n```\n\n\u003e **package.json**\n\u003e \n\u003e ```diff\n\u003e {\n\u003e   \"scripts\": {\n\u003e      \"start\": \"react-scripts start\",\n\u003e      \"build\": \"react-scripts build\",\n\u003e      \"test\": \"react-scripts test\",\n\u003e -    \"eject\": \"react-scripts eject\"\n\u003e +    \"eject\": \"react-scripts eject\",\n\u003e +    \"lint\": \"eslint src\",\n\u003e +    \"lint:fix\": \"eslint --fix src\"\n\u003e   },\n\u003e   \"eslintConfig\": {\n\u003e      \"extends\": [\n\u003e        \"react-app\",\n\u003e -      \"react-app/jest\"\n\u003e +      \"react-app/jest\",\n\u003e +      \"plugin:standard-cra/recommended\"\n\u003e      ]\n\u003e    },\n\u003e }\n\u003e ```\n\\* *See below for list of presets*\n\n## Let react-scripts run with eslint errors.\nIf you do not want eslint errors to block `yarn start` or `yarn build`...\n\n\u003e **.env.local**\n\u003e \n\u003e ```bash\n\u003eDISABLE_ESLINT_PLUGIN=true\n\u003e ```\n\n## VSCode\nInstall [EsLint extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n\u003e **.vscode/settings.json**\n\u003e \n\u003e ```json\n\u003e {\n\u003e   \"eslint.format.enable\": true,\n\u003e   \"editor.defaultFormatter\": \"dbaeumer.vscode-eslint\",\n\u003e   \"[typescript]\": {\n\u003e     \"editor.defaultFormatter\": \"dbaeumer.vscode-eslint\"\n\u003e   },\n\u003e   \"[typescriptreact]\": {\n\u003e     \"editor.defaultFormatter\": \"dbaeumer.vscode-eslint\"\n\u003e   }\n\u003e }\n\u003e ```\n\\* *You'll need to **reload VSCode***\n\u003cbr /\u003e\u003cbr /\u003e\n\n## Presets\n\n| Preset | StandardJS | TypeScript | React/JSX strict rules |\n| --- | :-: | :-: | :-: |\n| plugin:standard-cra/recommended | ✔ | ✔ | ✔ |\n| plugin:standard-cra/base | ✔ | ✔ | ❌ |\n| plugin:standard-cra/js-recommended | ✔ | ❌ | ✔ |\n| plugin:standard-cra/js-base | ✔ | ❌ | ❌ |\n\n\u003cbr /\u003e\n\n## Rules\n\n1) [Recommended rules from React plugin](https://github.com/yannickcr/eslint-plugin-react#list-of-supported-rules)\n2) [StandardJS + TypeScript](https://standardjs.com/)\n3) React + JSX (see below)\n\n# Strict React + JSX rules\n\u003e 🔴 error  🟡 warning\n\n## React components\n- 🔴 React file needs extension `.js .jsx` (if using TS: `.ts .tsx`)\n- 🔴 `arrow-functions` are mandatory for components\n- 🔴 Component name needs to be in Pascal case (ex: `\u003cMyComponentName /\u003e`)\n- 🔴 No [dangerous](https://reactjs.org/docs/dom-elements.html)  properties\n- 🔴 No children in void DOM element. (ex: `\u003cbr\u003e forbidden \u003c/br\u003e`)\n- 🔴 React fragment needs to be simplified. (ex: `\u003c\u003e ... \u003c/\u003e`)\n- 🟡 No useless closing tag (ex: `\u003cFoo\u003e\u003c/Foo\u003e`)\n- 🟡 No useless fragments\n\n## React component props\n- 🔴 No URL starting with `javascript:` in href prop\n- 🟡 No single quote for props\n- 🟡 No Array indexes in `key` prop\n- 🟡 No useless Boolean prop (ex: `\u003cComp forbidden={true} /\u003e`)\n- 🟡 No useless curly braces in props (ex: `\u003cComp forbidden={'string'} /\u003e`)\n\n## Indentation\n- 🟡 2 spaces indentation\n- 🟡 Multiple indentation rules, see below:\n\n```tsx\nconst MyComponent: React.FC\u003cMyComponentProps\u003e = ({\n  foo,\n  bar,\n  ...props\n}) =\u003e (\n  \u003c\u003e\n    \u003cspan id=\"id\" className=\"myClass\"\u003e\n      text \u003cstrong\u003ebold\u003c/strong\u003e\n      \u003chr /\u003e\n    \u003c/span\u003e\n\n    { foo \u0026\u0026 (\n      \u003cFooComponent\n        data-foo=\"foo\"\n        bar={bar}\n        baz\n        onClick={() =\u003e { handleClick() }}\n        {...props}\n      /\u003e\n    ) }\n  \u003c/\u003e\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkegi%2Feslint-plugin-standard-cra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkegi%2Feslint-plugin-standard-cra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkegi%2Feslint-plugin-standard-cra/lists"}