{"id":15408273,"url":"https://github.com/krzkaczor/typestrict","last_synced_at":"2025-04-05T05:05:34.845Z","repository":{"id":57159757,"uuid":"113625482","full_name":"krzkaczor/TypeStrict","owner":"krzkaczor","description":"ESLint config focused on maximizing type safety 💪","archived":false,"fork":false,"pushed_at":"2022-05-29T11:37:01.000Z","size":78,"stargazers_count":217,"open_issues_count":0,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-29T04:06:41.887Z","etag":null,"topics":["tslint","type-safety","typescript"],"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/krzkaczor.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":"2017-12-08T23:13:07.000Z","updated_at":"2025-03-15T09:45:27.000Z","dependencies_parsed_at":"2022-09-08T13:32:15.259Z","dependency_job_id":null,"html_url":"https://github.com/krzkaczor/TypeStrict","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzkaczor%2FTypeStrict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzkaczor%2FTypeStrict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzkaczor%2FTypeStrict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzkaczor%2FTypeStrict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krzkaczor","download_url":"https://codeload.github.com/krzkaczor/TypeStrict/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289426,"owners_count":20914464,"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":["tslint","type-safety","typescript"],"created_at":"2024-10-01T16:33:12.155Z","updated_at":"2025-04-05T05:05:34.823Z","avatar_url":"https://github.com/krzkaczor.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"/images/logo.png\" width=\"120\" alt=\"TypeStrict\"\u003e\n  \u003ch3 align=\"center\"\u003eTypeStrict\u003c/h3\u003e \n  \u003cp align=\"center\"\u003eSquash bugs before shipping them with TypeScript and ESLint!\u003c/p\u003e\n  \u003cp align=\"center\"\u003eESLint config focused on maximizing type safety\u003c/p\u003e\n  \u003cp align=\"center\"\u003e\n    \u003cimg alt=\"Downloads\" src=\"https://img.shields.io/npm/dm/typestrict.svg\"\u003e\n    \u003ca href=\"/package.json\"\u003e\u003cimg alt=\"Software License\" src=\"https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\"\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\n\u003c/p\u003e\n\n# Installation\n\n```bash\nnpm install --save-dev @typescript-eslint/eslint-plugin eslint-plugin-sonarjs eslint-config-typestrict\n```\n\n👉 If you still use TSLint please use [typestrict@1](https://github.com/krzkaczor/TypeStrict/tree/838c8eaa599e349327d5eba8f40f70d572dc3be0)\n\n# Usage\n\nIn your `.eslintrc.json`:\n\n```json\n{\n  \"extends\": \"typestrict\"\n  // ... add here your own rules\n}\n```\n\nUnfortunately, you need to install plugins that we depend on manually: `@typescript-eslint/eslint-plugin`, `eslint-plugin-sonarjs`\n\nRemember to use `strict` compiler setting in `tsconfig.json`!\n\n# Description\n\nAll rules in this config are focused on catching bugs in your code and be as not annoying as possible. They don't\ncare about your code style or formatting.\n\n`TypeStrict` combines rules from various rule sets: [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin),\n[sonarJS](https://github.com/SonarSource/SonarJS),\n\n## Complete rules list\n\n### ESLint\n\n- [constructor-super](https://eslint.org/docs/rules/constructor-super)\n- [no-invalid-this](https://eslint.org/docs/rules/no-invalid-this)\n- [no-restricted-syntax](https://eslint.org/docs/rules/no-restricted-syntax) (with `\"check-parameters\"` and `{\"ignore-pattern\": \"^_\" }`)\n- [use-isnan](https://eslint.org/docs/rules/use-isnan)\n\n### TypeScript ESLint\n\n- [@typescript-eslint/no-unused-vars](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md) with `{\"argsIgnorePattern\": \"^_\"}`\n- [@typescript-eslint/await-thenable](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/await-thenable.md)\n- [@typescript-eslint/no-floating-promises](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-floating-promises.md)\n- [@typescript-eslint/no-misused-new](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-misused-new.md)\n- [@typescript-eslint/restrict-plus-operands](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/restrict-plus-operands.md)\n- [@typescript-eslint/no-unnecessary-condition](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unnecessary-condition.md)\n\n### SonarTS\n\n- [no-all-duplicated-branches](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-all-duplicated-branches.md)\n- [no-collection-size-mischeck](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-collection-size-mischeck.md)\n- [no-duplicated-branches](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-duplicated-branches.md)\n- [no-element-overwrite](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-element-overwrite.md)\n- [no-identical-conditions](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-identical-conditions.md)\n- [no-identical-expressions](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-identical-expressions.md)\n\n# Contributing\n\nDo you have idea for new rule to be added? You don't agree with one of rules included? Feel free to create issue / PR.\n\nLogo by [@codeandcats](https://github.com/codeandcats).\n\n# License\n\nMIT by [Krzysztof Kaczor](https://twitter.com/krzKaczor)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrzkaczor%2Ftypestrict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrzkaczor%2Ftypestrict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrzkaczor%2Ftypestrict/lists"}