{"id":20712916,"url":"https://github.com/thesis/eslint-config","last_synced_at":"2025-04-23T07:55:54.998Z","repository":{"id":44923248,"uuid":"411662899","full_name":"thesis/eslint-config","owner":"thesis","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-10T00:12:47.000Z","size":138,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-04-23T07:55:47.909Z","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/thesis.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":"2021-09-29T12:21:29.000Z","updated_at":"2025-03-10T00:12:50.000Z","dependencies_parsed_at":"2024-11-17T02:23:25.186Z","dependency_job_id":"941dd367-ec2b-4b83-98e4-366b0e86001e","html_url":"https://github.com/thesis/eslint-config","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesis%2Feslint-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesis%2Feslint-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesis%2Feslint-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesis%2Feslint-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thesis","download_url":"https://codeload.github.com/thesis/eslint-config/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250395208,"owners_count":21423377,"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-11-17T02:22:31.216Z","updated_at":"2025-04-23T07:55:54.980Z","avatar_url":"https://github.com/thesis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-config\n\nA shared ESLint config based off Airbnb style guides. Covers JS and TS including\nReact / JSX.\n\n## Getting started\n\n1. Install `eslint` and the shared config with `yarn`\n\n```bash\nyarn add -D eslint prettier @typescript-eslint/eslint-plugin @typescript-eslint/parser\nyarn add -D @thesis-co/eslint-config\n```\n\n2. In your `.eslintrc.js` add:\n\n```js\nmodule.exports = {\n  root: true,\n  extends: [\n      \"@thesis-co\"\n  ]\n}\n```\n\n3. Add `.tsconfig-eslint.json`. You can add this file manually with custom configuration or symlink this file with the default options.\n\n```bash\nln -s ./node_modules/@thesis-co/eslint-config/.tsconfig-eslint.json ./.tsconfig-eslint.json\n```\n\n\n 4. Add commands for linting to your `package.json`:\n ```json\n{\n  \"scripts\": {\n    \"lint:eslint\": \"eslint .\",\n    \"lint:fix:eslint\": \"eslint . --fix\"\n  }\n}\n```\n\n## Sample config for related [pre-commit](https://pre-commit.com) hook\n\n```yaml\n - repo: local\n   hooks:\n    - id: lint-ts\n      name: 'lint ts'\n      entry: /usr/bin/env bash -c \"yarn lint:ts\"\n      files: '\\.tsx$'\n      language: script\n      description: \"Checks TS code according to the package's linter configuration\"\n    - id: lint-js\n      name: 'lint js'\n      entry: /usr/bin/env bash -c \"yarn lint:js\"\n      files: '\\.jsx$'\n      language: script\n      description: \"Checks JS code according to the package's linter configuration\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesis%2Feslint-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthesis%2Feslint-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesis%2Feslint-config/lists"}