{"id":19646198,"url":"https://github.com/yoctol/eslint-config-yoctol","last_synced_at":"2025-07-18T21:32:08.422Z","repository":{"id":39096847,"uuid":"52655679","full_name":"Yoctol/eslint-config-yoctol","owner":"Yoctol","description":"Yoctol specific linting rules for ESLint","archived":false,"fork":false,"pushed_at":"2025-07-11T22:48:57.000Z","size":464,"stargazers_count":5,"open_issues_count":13,"forks_count":1,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-07-12T00:30:31.944Z","etag":null,"topics":["eslint","eslint-config"],"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/Yoctol.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-02-27T07:34:41.000Z","updated_at":"2021-09-30T16:06:26.000Z","dependencies_parsed_at":"2023-02-07T22:31:28.173Z","dependency_job_id":"37236d46-95b5-4845-a94e-7d3c12c39dc0","html_url":"https://github.com/Yoctol/eslint-config-yoctol","commit_stats":{"total_commits":261,"total_committers":9,"mean_commits":29.0,"dds":"0.49042145593869735","last_synced_commit":"42bd5492cf7451a7ca0f18c4bfad3d9460c34ef1"},"previous_names":[],"tags_count":48,"template":false,"template_full_name":null,"purl":"pkg:github/Yoctol/eslint-config-yoctol","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yoctol%2Feslint-config-yoctol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yoctol%2Feslint-config-yoctol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yoctol%2Feslint-config-yoctol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yoctol%2Feslint-config-yoctol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yoctol","download_url":"https://codeload.github.com/Yoctol/eslint-config-yoctol/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yoctol%2Feslint-config-yoctol/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265837542,"owners_count":23836557,"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":["eslint","eslint-config"],"created_at":"2024-11-11T14:37:15.389Z","updated_at":"2025-07-18T21:32:08.388Z","avatar_url":"https://github.com/Yoctol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-config-yoctol\n\n[![NPM version][npm-image]][npm-url]\n[![Build Status][travis-image]][travis-url]\n[![Greenkeeper badge](https://badges.greenkeeper.io/Yoctol/eslint-config-yoctol.svg)](https://greenkeeper.io/)\n[![Dependency Status][david_img]][david_site]\n\n\u003e Yoctol Info. ESLint config, fork from [eslint-config-airbnb](https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb)\n\n## Usage\n\n### eslint-config-yoctol\n\nOur default export contains all of our ESLint rules, including EcmaScript 6+\nand React. It requires `eslint`, `eslint-plugin-import`, `eslint-plugin-react`, `eslint-plugin-react-hooks`, `eslint-plugin-jsx-a11y`, `eslint-plugin-prettier`, `eslint-plugin-sort-imports-es6-autofix` and `prettier`.\n\n1. Install the correct versions of each package, which are listed by the command:\n\n```sh\nnpm info \"eslint-config-yoctol@latest\" peerDependencies\n```\n\nLinux/OSX users can simply run\n\n```sh\n(\n  export PKG=eslint-config-yoctol;\n  npm info \"$PKG@latest\" peerDependencies --json | command sed 's/[\\{\\},]//g ; s/: /@/g' | xargs npm install --save-dev \"$PKG@latest\"\n)\n```\n\nWhich produces and runs a command like:\n\n```sh\nnpm install --save-dev eslint-config-yoctol eslint@^#.#.# eslint-plugin-jsx-a11y@^#.#.# eslint-plugin-import@^#.#.# eslint-plugin-react@^#.#.# eslint-plugin-react-hooks@^#.#.# eslint-plugin-prettier@^#.#.# eslint-plugin-sort-imports-es6-autofix@^#.#.#\n```\n\nWindows users can either install all the peer dependencies manually, or use the [install-peerdeps](https://github.com/nathanhleung/install-peerdeps) cli tool.\n\n```sh\nnpm install -g install-peerdeps\ninstall-peerdeps --dev eslint-config-yoctol\n```\n\nThe cli will produce and run a command like:\n\n```sh\nnpm install --save-dev eslint-config-yoctol eslint@^#.#.# eslint-plugin-jsx-a11y@^#.#.# eslint-plugin-import@^#.#.# eslint-plugin-react@^#.#.# eslint-plugin-react-hooks@^#.#.# eslint-plugin-prettier@^#.#.# eslint-plugin-sort-imports-es6-autofix@^#.#.#\n```\n\n2. Add `\"extends\": \"yoctol\"` to your .eslintrc\n\n### eslint-config-yoctol/base\n\nThis entry point is deprecated. See [eslint-config-yoctol-base](https://npmjs.com/eslint-config-yoctol-base).\n\n### eslint-config-yoctol/legacy\n\nThis entry point is deprecated. See [eslint-config-yoctol-base](https://npmjs.com/eslint-config-yoctol-base).\n\nSee [Airbnb's Javascript styleguide](https://github.com/yoctol/javascript) and\nthe [ESlint config docs](http://eslint.org/docs/user-guide/configuring#extending-configuration-files)\nfor more information.\n\n## Rules be overwritten\n\n### react\n\n```\n- react/destructuring-assignment: 'off'\n- react/sort-prop-types: ['error', {\n  callbacksLast: true,\n  ignoreCase: false,\n  requiredFirst: false,\n}]\n- react/no-deprecated: ['warn']\n- react/prefer-stateless-function: 'off'\n- react/jsx-filename-extension: ['error', { extensions: ['.js'] }]\n- react-hooks/rules-of-hooks: 'error'\n- react-hooks/exhaustive-deps: 'error'\n```\n\n[npm-image]: https://badge.fury.io/js/eslint-config-yoctol.svg\n[npm-url]: https://npmjs.org/package/eslint-config-yoctol\n[travis-image]: https://travis-ci.org/Yoctol/eslint-config-yoctol.svg\n[travis-url]: https://travis-ci.org/Yoctol/eslint-config-yoctol\n[david_img]: https://david-dm.org/Yoctol/eslint-config-yoctol.svg\n[david_site]: https://david-dm.org/Yoctol/eslint-config-yoctol\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoctol%2Feslint-config-yoctol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoctol%2Feslint-config-yoctol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoctol%2Feslint-config-yoctol/lists"}