{"id":19388108,"url":"https://github.com/zakimohammed/react-eslint-prettier","last_synced_at":"2026-04-30T11:36:04.238Z","repository":{"id":232003301,"uuid":"783109544","full_name":"ZakiMohammed/react-eslint-prettier","owner":"ZakiMohammed","description":"React project for setting up ESLint + Prettier","archived":false,"fork":false,"pushed_at":"2024-04-07T09:40:55.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-18T11:21:07.525Z","etag":null,"topics":["eslint","prettier","prettier-eslint","react","react-eslint","react-prettier"],"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/ZakiMohammed.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}},"created_at":"2024-04-07T00:57:23.000Z","updated_at":"2024-09-08T13:04:55.000Z","dependencies_parsed_at":"2024-04-07T10:44:38.227Z","dependency_job_id":null,"html_url":"https://github.com/ZakiMohammed/react-eslint-prettier","commit_stats":null,"previous_names":["zakimohammed/react-eslint-prettier"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ZakiMohammed/react-eslint-prettier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZakiMohammed%2Freact-eslint-prettier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZakiMohammed%2Freact-eslint-prettier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZakiMohammed%2Freact-eslint-prettier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZakiMohammed%2Freact-eslint-prettier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZakiMohammed","download_url":"https://codeload.github.com/ZakiMohammed/react-eslint-prettier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZakiMohammed%2Freact-eslint-prettier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32463892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["eslint","prettier","prettier-eslint","react","react-eslint","react-prettier"],"created_at":"2024-11-10T10:11:48.498Z","updated_at":"2026-04-30T11:35:59.812Z","avatar_url":"https://github.com/ZakiMohammed.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React ESLint + Prettier\n\nReact project for setting up ESLint + Prettier.\n\n## Run App\n\nBelow command will run the project:\n\n```\nnpm run server\nnpm run dev\n```\n\nFor running the server, install `json-server` globally:\n\n```\nnpm install -g json-server\n```\n\n## Initial Setup\n\nBelow command executed to perform initial setup:\n\n```\nnpm create vite@latest\n\n# project name: react-eslint\n# framework: react\n# variant: JavaScript + SWC\n\ncd react-eslint\nnpm i\n\n```\n\n## ESLint\n\nRun command:\n\n```\nnpm run lint\n```\n\nAdd new script:\n\n```\n\"lint\": \"eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0\",\n\"lint:html\": \"eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0 --format html \u003e lint.html\",\n```\n\nAdd ESLint ignore file `.eslintignore`:\n\n```\nnode_modules/\ndist/\n.prettierrc.cjs\n.eslintrc.cjs\n```\n\nRefer: https://eslint.org/\n\n## ESLint + Prettier\n\nAdd Prettier config `.prettierrc.cjs` and Prettier ignore file `.prettierignore`:\n\n```\nmodule.exports = {\n  singleQuote: true,\n  bracketSameLine: true,\n  endOfLine: 'auto',\n};\n```\n\nAdd below file names fo your `.prettierignore` file:\n\n```\nnode_modules\npackage-lock.json\ndist\nlint-*\nlint.*\n```\n\nUnderstand the philosophy of formatting with ESLint + Prettier from:\nhttps://github.com/prettier/eslint-config-prettier/\nhttps://github.com/prettier/eslint-plugin-prettier#recommended-configuration\n\nAdd `eslint-config-prettier` to project:\n\n```\nnpm install --save-dev eslint-config-prettier\n```\n\nAdd `eslint-plugin-prettier` and `prettier` to project:\n\n```\nnpm install --save-dev eslint-plugin-prettier\nnpm install --save-dev --save-exact prettier\n```\n\nAdd new script:\n\n```\n\"prettier:write\": \"prettier --config .prettierrc.cjs --write .\",\n\"prettier:check\": \"prettier --config .prettierrc.cjs --check .\"\n```\n\nAdd Prettier rules to `.eslintrc.cjs`:\n\n```\nmodule.exports = {\n  extends: [\n    ...\n    'plugin:prettier/recommended'\n  ],\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzakimohammed%2Freact-eslint-prettier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzakimohammed%2Freact-eslint-prettier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzakimohammed%2Freact-eslint-prettier/lists"}