{"id":16369536,"url":"https://github.com/chomosuke/eslint-config","last_synced_at":"2025-08-22T12:34:38.403Z","repository":{"id":57227902,"uuid":"467039239","full_name":"chomosuke/eslint-config","owner":"chomosuke","description":"An opinionated eslint config for typescript based on airbnb","archived":false,"fork":false,"pushed_at":"2024-07-10T11:01:56.000Z","size":1121,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-15T01:44:03.215Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chomosuke.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}},"created_at":"2022-03-07T10:06:12.000Z","updated_at":"2024-07-10T11:01:59.000Z","dependencies_parsed_at":"2022-09-12T17:00:43.254Z","dependency_job_id":null,"html_url":"https://github.com/chomosuke/eslint-config","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chomosuke/eslint-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chomosuke%2Feslint-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chomosuke%2Feslint-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chomosuke%2Feslint-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chomosuke%2Feslint-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chomosuke","download_url":"https://codeload.github.com/chomosuke/eslint-config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chomosuke%2Feslint-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271638577,"owners_count":24794717,"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-22T02:00:08.480Z","response_time":65,"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-10-11T02:55:35.634Z","updated_at":"2025-08-22T12:34:38.344Z","avatar_url":"https://github.com/chomosuke.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-config-chomosuke\nThis is an opinionated eslint config for typescript based on airbnb-typescript/base \u0026 typescript/recommended\n\nThis config is published to [NPM](https://www.npmjs.com/package/eslint-config-chomosuke)\n\nChanges on top of airbnb-typescript/base \u0026 typecript/recommended:\n- Indent with 4 spaces instead of 2.\n    - According to [Linux kernel coding style](https://www.kernel.org/doc/html/v4.10/process/coding-style.html#indentation), if you need more than 3 levels of indentation, you’re screwed anyway, and should fix your program.\n- Changed `max-len` to 80 and not ignoring string \u0026 template literal.\n    - I have a small screen and I like vertical spliting.\n- Turned off `import/prefer-default-export` and replaced it with `import/no-default-export`.\n    - Naming things are hard enough already, let's only do it once.\n    - This also enables auto import in some IDEs.\n    - People will get confused when they see the same thing with different name in different files.\n    - `max-lines` will take care of preventing files exporting too many things.\n- Overridden `no-unused-vars` to allow and enforce leading `_` to indicate intentionally unused vars\n    - Enforce all unused vars to be intentional.\n    - Unused args could make sense sometimes.\n- Added `@typescript-eslint/member-delimiter-style` to enforce semicolon style.\n    - It's good to have consistency.\n- Added `eqeqeq`.\n    - You almost never want `==`. Even when comparing against `null` it's better to explicitly state if you want to allow `undefined` or not.\n- Allowed `ForOfStatement`.\n    - Most programmers are more familiar with for loop syntax compared to `forEach()`.\n    - Performance shouldn't really be a consideration when using typescript.\n- Disallowed type assertion.\n    - Type assertion causes the runtime type to be different than the static type. This can cause great confusion especially when the assertion happens much earlier in the execution.\n    - Either write a typeguard or use a run time typechecking library like [zod](https://www.npmjs.com/package/zod) or [io-ts](https://www.npmjs.com/package/io-ts) instead.\n- Turned off `no-use-before-define`.\n    - It's preferable to have public interfaces at the top of a module because it allows the reader to see the part they are going to use first. This rule forbids that.\n- Added `@typescript-eslint/type-annotation-spacing`.\n    - It's good to have consistency.\n- Turned off `no-plusplus` \u0026 `no-minusminus`.\n    - Most programmers are more familiar with for loop syntax compared to `forEach()`.\n    - Most programmers are very familiar with `++` \u0026 `--` and know most its nuance.\n- Made `@typescript-eslint/no-explicit-any` an error.\n    - `any` defeats the purpose of typescript, use `unknown` instead.\n    - This should be used with `noImplicitAny` in tsconfig.\n- No checkLoops for `no-constant-condition`.\n    - Infinite loop are almost always intended.\n- Added `@typescript-eslint/no-floating-promises`.\n    - I've forgotten to await too many times to not have this rule.\n- Added `@typescript-eslint/strict-boolean-expressions`.\n    - It's always better to define explicitly what you do or do not allow. It's less error prone and more intension revealing.\n- Turned off `@typescript-eslint/no-inferrable-types`.\n    - Sometimes we like to write the type annotation explicitely to make our code more readable.\n- Added `@typescript-eslint/explicit-member-accessibility`.\n    - It's good to have consistency.\n- Added `max-lines`, `max-statements`, `max-depth` \u0026 `complexity`.\n    - This is aimed to increase cohesion.\n\n## Contributing\nIf you're adding new rules, please add your justification in the readme as well as in the PR.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchomosuke%2Feslint-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchomosuke%2Feslint-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchomosuke%2Feslint-config/lists"}