{"id":16186172,"url":"https://github.com/zenflow/eslint-config-tsdx","last_synced_at":"2025-07-12T06:36:20.003Z","repository":{"id":57229400,"uuid":"285805731","full_name":"zenflow/eslint-config-tsdx","owner":"zenflow","description":"An ESLint shareable config with rules of tsdx.","archived":false,"fork":false,"pushed_at":"2020-08-17T01:26:52.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-19T14:52:04.106Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zenflow.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}},"created_at":"2020-08-07T10:47:58.000Z","updated_at":"2020-08-17T01:26:54.000Z","dependencies_parsed_at":"2022-09-14T14:52:02.737Z","dependency_job_id":null,"html_url":"https://github.com/zenflow/eslint-config-tsdx","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/zenflow/eslint-config-tsdx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenflow%2Feslint-config-tsdx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenflow%2Feslint-config-tsdx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenflow%2Feslint-config-tsdx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenflow%2Feslint-config-tsdx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zenflow","download_url":"https://codeload.github.com/zenflow/eslint-config-tsdx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenflow%2Feslint-config-tsdx/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264951610,"owners_count":23687974,"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-10-10T07:17:20.478Z","updated_at":"2025-07-12T06:36:19.765Z","avatar_url":"https://github.com/zenflow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-config-tsdx\n\nAn [ESLint shareable config](https://eslint.org/docs/developer-guide/shareable-configs.html)\nwith rules of [tsdx](https://github.com/formium/tsdx).\n\n### Installing\n\n#### Install Dependencies\n\nThis package requires `eslint@6.x`.\n\nInstall it if you haven't already:\n\n```\nnpm install --save-dev eslint@6.x\n```  \n\nInstall this package:\n\n```\nnpm install --save-dev eslint-config-tsdx\n```\n\nThis package requires you to have `typescript` installed when (and only when) linting any TypeScript (ts or tsx) files.\n\nInstall `typescript` if necessary:\n\n```\nnpm install --save-dev typescript\n```\n\n#### Configure `.eslintrc`\n\nAdd `\"tsdx\"` to the `\"extends\"` of your `.eslintrc` file.\n\nIf you are using React, set `config.settings.react.version` in your `.eslintrc` file.\nOtherwise, the latest version of React is assumed.\n\nExample `.eslintrc` file:\n\n```json\n{\n  \"extends\": [\n    \"tsdx\"\n  ],\n  \"settings\": {\n    \"react\": {\n      \"version\": \"detect\"  \n    }\n  }\n}\n```\n\n### Warning\n\nBecause of the way eslint resolves plugin modules, \nits documentation tells us that [a shareable config should include its plugin dependencies in \"peerDependencies\"](https://eslint.org/docs/developer-guide/shareable-configs.html#publishing-a-shareable-config),\nmeaning users of the config would need to install and depend on each plugin package themselves.\nParsers work the same way. \nThis essentially describes [eslint issue #3458](https://github.com/eslint/eslint/issues/3458). \n\nFor your convenience, \ninstead of including plugins and parsers as \"peerDependencies\", \nwe will include them as \"dependencies\" *and issue the following warning*:\n\n**Do not install alternate versions of the following npm packages in your project:**\n\n```\n\"@typescript-eslint/eslint-plugin\": \"2.x\"\n\"@typescript-eslint/parser\": \"2.x\"\n\"babel-eslint\": \"10.x\"\n\"eslint-plugin-flowtype\": \"3.x || 4.x\"\n\"eslint-plugin-import\": \"2.x\"\n\"eslint-plugin-jsx-a11y\": \"6.x\"\n\"eslint-plugin-prettier\": \"3.x\"\n\"eslint-plugin-react\": \"7.x\"\n\"eslint-plugin-react-hooks\": \"1.x || 2.x\"\n\"prettier\": \"2.x\"\n```\n\n\n## TODO for Matt\n\nPR tsdx: Org should take over eslint-config-tsdx \u0026 use it in tsdx \n    https://github.com/formium/tsdx/blob/master/src/createEslintConfig.ts\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenflow%2Feslint-config-tsdx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzenflow%2Feslint-config-tsdx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenflow%2Feslint-config-tsdx/lists"}