{"id":20294266,"url":"https://github.com/teambit/custom-eslint-config","last_synced_at":"2025-08-13T19:16:48.007Z","repository":{"id":80427387,"uuid":"385939139","full_name":"teambit/custom-eslint-config","owner":"teambit","description":"An example of how to customize eslint config","archived":false,"fork":false,"pushed_at":"2021-07-14T13:05:42.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-04T05:29:40.680Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/teambit.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}},"created_at":"2021-07-14T12:52:21.000Z","updated_at":"2021-07-16T16:04:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"d1b0fc26-5969-4784-85fc-4f226c08a08a","html_url":"https://github.com/teambit/custom-eslint-config","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/teambit/custom-eslint-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teambit%2Fcustom-eslint-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teambit%2Fcustom-eslint-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teambit%2Fcustom-eslint-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teambit%2Fcustom-eslint-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teambit","download_url":"https://codeload.github.com/teambit/custom-eslint-config/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teambit%2Fcustom-eslint-config/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270296564,"owners_count":24560364,"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","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"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":[],"created_at":"2024-11-14T15:28:39.111Z","updated_at":"2025-08-13T19:16:47.936Z","avatar_url":"https://github.com/teambit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# custom-eslint-config\nAn example repo for customizing eslint config in a custom env\n\n## Structure\nIn this repo we created a new custom-env using `bit create react-env custom-env` and a simple react component using `bit create react-component ui/button`;\n\nThe `ui/button` component is configured to use the `custom-env` (see in the workspace.jsonc file).\n\n## custom-env\nThe custom env is using the new API of `useEslint` (see more details in (this pr)[https://github.com/teambit/bit/pull/4575])\nIt's mutating the default react env eslint config, and changing the no-console rule to show error for `console.log` instead of warning\n\n## Run this project\n```\ngit clone https://github.com/teambit/custom-eslint-config.git\nbit install\nbit compile\nbit lint\n```\n\nThe `bit lint` will show an error in the button files, for the console.log in the `button.tsx` file.\nRemoving the `config.setRule('no-console', ['error']);` in the `custom-env.extension.ts` file (followed by `bit compile`) will show the `console.log` as warning in `bit lint`. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteambit%2Fcustom-eslint-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteambit%2Fcustom-eslint-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteambit%2Fcustom-eslint-config/lists"}