{"id":28995095,"url":"https://github.com/axiscommunications/eslint-config-typescript-shareable","last_synced_at":"2025-06-25T04:06:33.157Z","repository":{"id":39889067,"uuid":"253450321","full_name":"AxisCommunications/eslint-config-typescript-shareable","owner":"AxisCommunications","description":"Typescript ESLint shareable config (ESLint, stylelint, Prettier)","archived":false,"fork":false,"pushed_at":"2023-07-14T09:40:54.000Z","size":36478,"stargazers_count":11,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-18T13:54:29.270Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/AxisCommunications.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-06T09:22:27.000Z","updated_at":"2021-12-30T08:35:55.000Z","dependencies_parsed_at":"2024-06-19T05:26:08.895Z","dependency_job_id":"22f0dd70-3d22-4619-b9c5-34d6455c34bb","html_url":"https://github.com/AxisCommunications/eslint-config-typescript-shareable","commit_stats":null,"previous_names":[],"tags_count":59,"template":false,"template_full_name":null,"purl":"pkg:github/AxisCommunications/eslint-config-typescript-shareable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxisCommunications%2Feslint-config-typescript-shareable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxisCommunications%2Feslint-config-typescript-shareable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxisCommunications%2Feslint-config-typescript-shareable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxisCommunications%2Feslint-config-typescript-shareable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AxisCommunications","download_url":"https://codeload.github.com/AxisCommunications/eslint-config-typescript-shareable/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxisCommunications%2Feslint-config-typescript-shareable/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261801988,"owners_count":23211664,"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":"2025-06-25T04:06:30.885Z","updated_at":"2025-06-25T04:06:33.150Z","avatar_url":"https://github.com/AxisCommunications.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-config-typescript-shareable\n\nTypescript ESLint shareable config\n\nThis config provides an explicit list of linting rules so you can use the same rules across different projects.\nThe rules that are provided in this config are mostly best practices for the React and JavaScript and TypeScript code.\n\nThis configuration presumes that at least ES2015, TypeScript and [React strict mode](https://reactjs.org/docs/strict-mode.html)\nare used in the project that uses this config.\n\nThe rules we have should:\n\n- not enforce any visual style (use prettier for that)\n- not enforce any particular coding style (functional, React hooks)\n- be well-behaved (e.g. forcing use of nullish coalescing can lead to worse looking code)\n- be allowed or error, not just warn\n\nIf you want to add a new rule or change an existing rule, please create an issue or pull request.\n\n## Install\n\n```bash\nyarn add -D eslint-config-typescript-shareable\n```\n\n## Usage\n\n1. ESLint\n   Add to your `eslintrc.yaml` configuration file:\n\n   ```yml\n   extends:\n     - 'typescript-shareable'\n\n   parserOptions:\n     project: './tsconfig.json'\n\n   env:\n     browser: true\n     es6: true\n     node: true\n\n   overrides:\n     ###\n     # Test file overrides\n     ###\n     - files: ['**/*.test.tsx', '**/*.test.ts']\n       env:\n         jest: true\n   ```\n\n2. stylelint\n   Add to your `.stylelintrc` configuration file:\n\n   ```json\n   {\n     \"extends\": [\"eslint-config-typescript-shareable/.stylelintrc\"]\n   }\n   ```\n\n3. Prettier\n   Add to your `.prettierrc.js` configuration file:\n\n   ```js\n   module.exports = {\n     ...require('eslint-config-typescript-shareable/.prettierrc.js'),\n   }\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxiscommunications%2Feslint-config-typescript-shareable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxiscommunications%2Feslint-config-typescript-shareable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxiscommunications%2Feslint-config-typescript-shareable/lists"}