{"id":18447783,"url":"https://github.com/stoplightio/eslint-config","last_synced_at":"2025-04-15T08:59:17.444Z","repository":{"id":36534044,"uuid":"228112819","full_name":"stoplightio/eslint-config","owner":"stoplightio","description":"Shared Stoplight linting rules.","archived":false,"fork":false,"pushed_at":"2025-01-20T13:20:19.000Z","size":93,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-15T08:59:12.081Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stoplightio.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":"2019-12-15T01:25:25.000Z","updated_at":"2025-01-20T13:20:21.000Z","dependencies_parsed_at":"2023-01-17T02:23:10.992Z","dependency_job_id":null,"html_url":"https://github.com/stoplightio/eslint-config","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stoplightio%2Feslint-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stoplightio%2Feslint-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stoplightio%2Feslint-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stoplightio%2Feslint-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stoplightio","download_url":"https://codeload.github.com/stoplightio/eslint-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249040049,"owners_count":21202813,"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-06T07:14:26.054Z","updated_at":"2025-04-15T08:59:17.423Z","avatar_url":"https://github.com/stoplightio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Usage\n\n#### Install\n\nIncluding peer dependencies.\n\n```\nyarn add -D @typescript-eslint/eslint-plugin \\\n  @typescript-eslint/parser \\\n  eslint \\\n  eslint-plugin-import \\\n  eslint-plugin-jest \\\n  eslint-plugin-prettier \\\n  eslint-plugin-react \\\n  eslint-plugin-react-hooks \\\n  eslint-plugin-simple-import-sort \\\n  prettier\n```\n\nAdd `@stoplight/eslint-config`:\n\n```\nyarn add -D @stoplight/eslint-config\n```\n\n#### Setup\n\nCreate a `.eslintrc.js` file in the root of the repository with contents:\n\n```js\nmodule.exports = {\n  extends: ['@stoplight'],\n};\n```\n\nCreate a `.prettierrc.js` file in the root of the repository with contents:\n\n```js\nmodule.exports = {\n  ...require('@stoplight/eslint-config/prettier.config'),\n};\n```\n\n#### Typical Script Commands\n\n```json\n{\n  \"scripts\": {\n    \"lint\": \"yarn prettier.check \u0026\u0026 eslint --ext .js,.jsx,.ts,.tsx .\",\n    \"prettier.check\": \"prettier --ignore-path .eslintignore --check '**/*.{js,jsx,ts,tsx,md}'\",\n    \"lint.fix\": \"prettier --ignore-path .eslintignore --write '**/*.{js,jsx,ts,tsx,md}'; eslint --ext .js,.jsx,.ts,.tsx . --fix\"\n  }\n}\n```\n\n#### Typical `.eslintignore` File\n\n```bash\nnode_modules\ndist\nbuild\ncoverage\n.eslintrc.js\n.yalc\n.yarn\n.cache\ngen\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstoplightio%2Feslint-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstoplightio%2Feslint-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstoplightio%2Feslint-config/lists"}