{"id":25217374,"url":"https://github.com/valtech-ch/eslint-config","last_synced_at":"2025-07-05T16:33:31.696Z","repository":{"id":51354590,"uuid":"344804844","full_name":"valtech-ch/eslint-config","owner":"valtech-ch","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-05T22:04:41.000Z","size":192,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-05T09:25:50.007Z","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/valtech-ch.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-03-05T12:31:26.000Z","updated_at":"2021-10-31T14:12:35.000Z","dependencies_parsed_at":"2025-04-05T09:35:38.651Z","dependency_job_id":null,"html_url":"https://github.com/valtech-ch/eslint-config","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/valtech-ch/eslint-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valtech-ch%2Feslint-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valtech-ch%2Feslint-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valtech-ch%2Feslint-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valtech-ch%2Feslint-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/valtech-ch","download_url":"https://codeload.github.com/valtech-ch/eslint-config/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valtech-ch%2Feslint-config/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263771276,"owners_count":23508896,"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-02-10T20:13:35.959Z","updated_at":"2025-07-05T16:33:31.674Z","avatar_url":"https://github.com/valtech-ch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-config\n\nConfiguration and rules for ESLint, Prettier and TypeScript.\n\nWe recommend and assume your project to have TypeScript.\n\n## Install\n\nAdd this package\n\n    yarn add -D @valtech-ch/eslint-config\n\nAdd peer dependencies (for existing projects maybe you prefer to add them manually)\n\n    npx install-peerdeps -D @valtech-ch/eslint-config\n\n## Content\n\nThis package contains configurations and rules:\n\n### For JavaScript\n\n    @valtech-ch/eslint-config/config\n    @valtech-ch/eslint-config/plugins\n    @valtech-ch/eslint-config/rules\n\n### For React\n\n    @valtech-ch/eslint-config/config/react\n    @valtech-ch/eslint-config/plugins/react\n    @valtech-ch/eslint-config/rules/react\n\n### For Next.js\n\n    @valtech-ch/eslint-config/config/react\n    @valtech-ch/eslint-config/plugins/react\n    @valtech-ch/eslint-config/rules/nextjs\n\n## Usage\n\n1. To setup ESLint, create a `.eslintrc.js` file with\n\n   - this content if you want our given config:\n\n```js\nmodule.exports = {\n  extends: [\n    '@valtech-ch/eslint-config/config',\n    '@valtech-ch/eslint-config/plugins',\n    '@valtech-ch/eslint-config/rules',\n  ],\n}\n```\n\n- or this content if you want your own config instead:\n\n```js\nmodule.exports = {\n  // your custom config\n  extends: [\n    '@valtech-ch/eslint-config/plugins',\n    '@valtech-ch/eslint-config/rules',\n  ],\n}\n```\n\n2. To setup Prettier, create a `prettier.config.js` file with this content:\n\n   `module.exports = require(\"@valtech-ch/eslint-config/prettier.config\")`\n\n3. To setup TypeScript, create a `tsconfig.json` file with\n\n   - this content for non-React projects:\n\n   `{ \"extends\": \"@valtech-ch/eslint-config/tsconfig\" }`\n\n   - this content for React projects:\n\n   `{ \"extends\": \"@valtech-ch/eslint-config/tsconfig.react\" }`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaltech-ch%2Feslint-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaltech-ch%2Feslint-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaltech-ch%2Feslint-config/lists"}