{"id":26260456,"url":"https://github.com/tisoap/eslint-config-ts-react","last_synced_at":"2025-04-30T07:05:11.004Z","repository":{"id":57166718,"uuid":"458591731","full_name":"tisoap/eslint-config-ts-react","owner":"tisoap","description":"ESLint config for React based TypeScript projects","archived":false,"fork":false,"pushed_at":"2023-09-14T23:36:29.000Z","size":465,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-30T07:05:06.344Z","etag":null,"topics":["eslint","react","typescript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/tisoap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"ko_fi":"tisoap"}},"created_at":"2022-02-12T17:27:52.000Z","updated_at":"2022-09-20T13:10:45.000Z","dependencies_parsed_at":"2022-08-30T15:21:42.215Z","dependency_job_id":"6fbbfebf-16ce-4119-87db-a4a607c2f3e2","html_url":"https://github.com/tisoap/eslint-config-ts-react","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tisoap%2Feslint-config-ts-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tisoap%2Feslint-config-ts-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tisoap%2Feslint-config-ts-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tisoap%2Feslint-config-ts-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tisoap","download_url":"https://codeload.github.com/tisoap/eslint-config-ts-react/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251658200,"owners_count":21622819,"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":["eslint","react","typescript"],"created_at":"2025-03-13T23:14:57.593Z","updated_at":"2025-04-30T07:05:10.936Z","avatar_url":"https://github.com/tisoap.png","language":"JavaScript","funding_links":["https://ko-fi.com/tisoap","https://ko-fi.com/J3J472RAJ"],"categories":[],"sub_categories":[],"readme":"# @tisoap/eslint-config-ts-react\n\n\u003e ESLint config for React based TypeScript projects.\n\n## Rules\n\nThis config assumes that your project uses:\n\n- A recent version of React with Hooks\n- A recent version of Typescript\n- [Jest](https://jestjs.io/) as your test runner\n- [Testing Library](https://testing-library.com/) as your test utils\n- [Absolute imports with `baseUrl`](https://stackoverflow.com/questions/43281741/how-to-use-paths-in-tsconfig-json)\n\nFor the full list of rules, check the [`.eslintrc.js` file](./.eslintrc.js) in this repo.\n\n## Installation \u0026 Usage\n\nWith NPM:\n\n```bash\nnpm install --save-dev eslint typescript @tisoap/eslint-config-ts-react @shopify/eslint-plugin @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-import eslint-plugin-jest-dom eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-react-prefer-function-component eslint-plugin-sonarjs eslint-plugin-testing-library eslint-plugin-unicorn\n```\n\nWith Yarn:\n\n```bash\nyarn add -D eslint typescript @tisoap/eslint-config-ts-react @shopify/eslint-plugin @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-import eslint-plugin-jest-dom eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-react-prefer-function-component eslint-plugin-sonarjs eslint-plugin-testing-library eslint-plugin-unicorn\n```\n\n`.eslintrc` configuration:\n\n```js\nmodule.exports = {\n\tparserOptions: {\n\t\t// Replace with the path to your project's tsconfig file\n\t\tproject: './tsconfig.json'\n\t},\n\textends: ['@tisoap/eslint-config-ts-react']\n}\n```\n\n### Usage With Prettier\n\nYou can skip this section if you don't plan on using [Prettier](https://prettier.io/) on your project.\n\nInstall the plugin and config:\n\nWith NPM:\n\n```bash\nnpm install prettier eslint-plugin-prettier eslint-config-prettier --save-dev\n```\n\nWith Yarn:\n\n```bash\nyarn add -D prettier eslint-plugin-prettier eslint-config-prettier\n```\n\nUpdate your `.eslintrc` configuration:\n\n```js\nmodule.exports = {\n\tparserOptions: {\n\t\tproject: ['./tsconfig.json']\n\t},\n\tplugins: ['prettier'],\n\textends: ['@tisoap/eslint-config-ts-react', 'plugin:prettier/recommended'],\n\trules: {\n\t\t'prettier/prettier': ['error', {}, { usePrettierrc: true }]\n\t}\n}\n```\n\nAdd a [`.prettierrc` file](https://prettier.io/docs/en/configuration.html) with your configurations.\n\n## License\n\nThis project is licensed under the [MIT License](./LICENSE).\n\n### Support\n\nLiked this project and want to show your support? Buy me a coffee:\n\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/J3J472RAJ)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftisoap%2Feslint-config-ts-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftisoap%2Feslint-config-ts-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftisoap%2Feslint-config-ts-react/lists"}