{"id":21933551,"url":"https://github.com/chee/detect-eslint-config","last_synced_at":"2026-05-09T06:02:57.493Z","repository":{"id":97395788,"uuid":"455321547","full_name":"chee/detect-eslint-config","owner":"chee","description":"detect if a file is in a project that has an eslint config","archived":false,"fork":false,"pushed_at":"2022-08-05T01:20:53.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T15:40:45.466Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chee.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-03T20:42:40.000Z","updated_at":"2023-01-01T12:10:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"3839f5e7-0ddb-4f89-bd2e-55e4d7e4582e","html_url":"https://github.com/chee/detect-eslint-config","commit_stats":{"total_commits":18,"total_committers":2,"mean_commits":9.0,"dds":0.2222222222222222,"last_synced_commit":"a512288ee26fbe68b49b6bc7720e0cc189d61777"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chee%2Fdetect-eslint-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chee%2Fdetect-eslint-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chee%2Fdetect-eslint-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chee%2Fdetect-eslint-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chee","download_url":"https://codeload.github.com/chee/detect-eslint-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244961454,"owners_count":20538970,"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-29T00:12:29.353Z","updated_at":"2025-03-22T13:25:43.947Z","avatar_url":"https://github.com/chee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# detect-eslint-config\n\ndetect if a file is in a project that has an eslint config\n\n```sh\n❯ npm i -D detect-eslint-config\n```\n\nuse like:\n\n```js\nimport detectEslintConfig from 'detect-eslint-config'\n\nconst hasEslintConfig = !!detectEslintConfig('dog/face')\n\nif (hasEslintConfig) {\n  console.log('we have found an eslint config for this project')\n}\n```\n\nit is synchronous and it does not check any further back than a `package.json`\nshould it find one.\n\nif it does not find one it will stop at the disk root.\n\nit will not check for config at the root of the disk. i hope that is okay.\n\n## developing\n\n```sh\n❯ git clone git@github.com:chee/detect-eslint-config\n❯ cd detect-eslint-config\n❯ # edit source/index.js\n❯ npm run build # me up buttercup\n❯ npm run test\n❯ git add -A\n❯ git commit -m 'heHELLP'\n❯ git push -f\n❯ git rm -r *\n❯ git commit -m 'pleas'\n❯ git push -f\n❯ git filter-branch --tree-filter 'git rm -rf * || echo um'\n❯ git push -f\n```\n\nand a splendid time was guaranteed for all\n\n## TODO\n\n* get some eggs at the shop before it closes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchee%2Fdetect-eslint-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchee%2Fdetect-eslint-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchee%2Fdetect-eslint-config/lists"}