{"id":20244804,"url":"https://github.com/emergentsoftware/eslint-config","last_synced_at":"2026-05-08T12:33:53.941Z","repository":{"id":57111370,"uuid":"399489109","full_name":"EmergentSoftware/eslint-config","owner":"EmergentSoftware","description":"ESLint \u0026 Prettier config for React","archived":false,"fork":false,"pushed_at":"2021-09-16T15:50:49.000Z","size":109,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-14T18:48:55.533Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/EmergentSoftware.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":"2021-08-24T14:09:04.000Z","updated_at":"2021-09-16T15:50:52.000Z","dependencies_parsed_at":"2022-08-21T11:00:16.200Z","dependency_job_id":null,"html_url":"https://github.com/EmergentSoftware/eslint-config","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmergentSoftware%2Feslint-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmergentSoftware%2Feslint-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmergentSoftware%2Feslint-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmergentSoftware%2Feslint-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EmergentSoftware","download_url":"https://codeload.github.com/EmergentSoftware/eslint-config/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241688319,"owners_count":20003446,"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":"2024-11-14T09:17:27.665Z","updated_at":"2026-05-08T12:33:53.859Z","avatar_url":"https://github.com/EmergentSoftware.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESLint \u0026amp; Prettier config for React\n\n`@emergent/eslint-config`\n\n\u003e Shareable config for [ESLint](https://eslint.org/) and [Prettier](https://prettier.io/) in React projects.\n\n## Overview\n\nThis configuration uses the [airbnb](https://www.npmjs.com/package/eslint-config-airbnb) ESLint config as starting point and overrides a few rules to create a less restrictive development environment. Prettier recommended code formatting rules are enforced via the ESLint [plugin](https://github.com/prettier/eslint-plugin-prettier).\n\n## Setup\n\nTo install the package, run:\n\n```shell\n$ npm install @emergent/eslint-config --save-dev\n```\n\nThis will install the config along with its peer dependencies:\n\n- eslint\n- eslint-config-airbnb\n- eslint-config-prettier\n- eslint-plugin-import\n- eslint-plugin-jsx-a11y\n- eslint-plugin-react\n- eslint-plugin-react-hooks\n- eslint-plugin-prettier\n- prettier\n\n**NOTE:** if you are on an older version of `npm` (`\u003c7.0.0`), you will need to install these manually:\n\n```shell\n$ npx install-peerdeps @emergent/eslint-config --save-dev\n```\n\n## Usage\n\nAdd `@emergent/eslint-config` to your `.eslintrc` configfile:\n\n```jsx\n// .eslintrc\n{\n  \"extends\": [\"@emergent/eslint-config\"]\n}\n```\n\n## Prettier\n\nPrettier's default rules are enforced out of the box. Rules that conflict with ESLint are disabled via [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier).\n\nYou can override the default [Prettier options](https://prettier.io/docs/en/options.html) by specifying them under `prettier/prettier` ESLint config file. EX:\n\n```jsx\n// .eslintrc\n{\n  \"extends\": [\"@emergent/eslint-config\"],\n  \"rules\": {\n    \"prettier/prettier\": [\n      \"error\",\n      {\n        \"printWidth\": 110\n      }\n    ]\n  }\n}\n```\n\nEnsure these rules match the options specified in your `.prettierrc` file.\n\n## Adding Scripts\n\nAdd the following scripts to your `package.json` file. Run these commnads to see your error, or fix them automatically.\n\n```jsx\n\"scripts\": {\n  // ..\n  \"lint\": \"eslint --ignore-path .gitignore .\",\n  \"lint:fix\": \"eslint --ignore-path .gitignore --fix .\"\n  // ..\n}\n```\n\n## Extensions\n\nFor the best development experience use this config with the ESLint \u0026 Prettier extensions for your code editor. The ESLint extension highlites errors, and the prettier plugin will auto-format on save.\n\nFor Visual Studio Code use the following:\n\n\u003e dbaeumer.vscode-eslint\n\n\u003e esbenp.prettier-vscode\n\nEensure Prettier is your default formatter, and \"Format On Save\" is enabled\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femergentsoftware%2Feslint-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femergentsoftware%2Feslint-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femergentsoftware%2Feslint-config/lists"}