{"id":23066849,"url":"https://github.com/dvsa/eslint-config-ts","last_synced_at":"2025-08-15T11:33:32.356Z","repository":{"id":37812473,"uuid":"237928453","full_name":"dvsa/eslint-config-ts","owner":"dvsa","description":"Shared linter config","archived":false,"fork":false,"pushed_at":"2024-01-05T07:50:49.000Z","size":312,"stargazers_count":1,"open_issues_count":5,"forks_count":3,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-12-06T19:12:01.745Z","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/dvsa.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-03T09:26:59.000Z","updated_at":"2024-01-03T09:19:28.000Z","dependencies_parsed_at":"2024-06-19T13:20:31.361Z","dependency_job_id":"6a75c616-08ea-4004-8d4a-da08d94c7350","html_url":"https://github.com/dvsa/eslint-config-ts","commit_stats":{"total_commits":12,"total_committers":8,"mean_commits":1.5,"dds":0.75,"last_synced_commit":"e1dc48b83539b95138887b56b541dacc760daae9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvsa%2Feslint-config-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvsa%2Feslint-config-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvsa%2Feslint-config-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvsa%2Feslint-config-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dvsa","download_url":"https://codeload.github.com/dvsa/eslint-config-ts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229910957,"owners_count":18143229,"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-12-16T05:15:09.508Z","updated_at":"2024-12-16T05:15:10.051Z","avatar_url":"https://github.com/dvsa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-config-ts\n\nShareable ESLint config for use in Node/Typescript projects.\n\n### Why?\nRather than having to copy linter config files across code repos of the same project/tech stack, can pull in a standard shared config and dependencies from a single place and manage any changes/updates centrally.\n\n### Rules\nThis config uses:\n- Airbnb style guide rules (adapted for Typescript): https://github.com/airbnb/javascript\n- ESLint Typescript plugin recommended rules: https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin\n- ESLint security plugin rules: https://github.com/nodesecurity/eslint-plugin-security\n\nA few of the default rules are switched off/customised as specified in the config in `index.js`.\n\n### Developers\nWhen making changes to this package you are unable to npm link to test the package locally due a bug in npm where peer dependencies are not installed. Github Issue - https://github.com/npm/cli/issues/2339\n\n### Prerequisites\n- \\\u003e= npm 7.x.x\n\nIf the following dependencies are not present in your package.json, this package will install them (see `peerDependencies` in `package.json`):\n\n```\neslint\n@typescript-eslint/eslint-plugin\n@typescript-eslint/typescript-estree\neslint-config-airbnb-typescript\neslint-plugin-import\neslint-plugin-jsx-a11y\neslint-plugin-react\neslint-plugin-react-hooks\neslint-plugin-security\neslint-plugin-jest\n```\n\n### Usage\n\n1. Install the config in your project.\n`npm install --save-dev @dvsa/eslint-config-ts`\n\n2. Add a `.eslintrc` to your project root extending the config:\n```\n{\n\t\"extends\": \"@dvsa/eslint-config-ts\"\n}\n```\n\nIf you need to override the shared config in any way to suit your specific project, for example by customising certain rules, you can do so here. See the [ESLint documentation](https://eslint.org/docs/user-guide/configuring  \"ESLint documentation\") for details.\n\n3. Add a `.eslintignore` to specify any project directories/files to exclude from the linter. ESLint already ignores `node_modules` by default.\n\n4. Run the linter:\n`(npx) eslint --ext .js,.ts .`\n\nThe `--ext` option is required to tell ESLint to lint `.ts` files (lints only `.js` by default) and `.` specifies the files/directory to lint.\n\nIf you are using VSCode, you can add the ESLint extension to see lint issues as you type. You might also want to add a pre-push hook to your project such that the linter runs on pushing code and fails the push if there are unresolved issues. \n\n------------\nThis shared config was originally made by the FTTS (Future Theory Test Service) team for use across our different project repos using a Node/Typescript/Jest stack. To suit your project you may need to configure the `env` property in your `.eslintrc` for your specific tech stack.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvsa%2Feslint-config-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdvsa%2Feslint-config-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvsa%2Feslint-config-ts/lists"}