{"id":16223386,"url":"https://github.com/vtrbo/eslint-config","last_synced_at":"2026-05-01T02:32:31.878Z","repository":{"id":57684565,"uuid":"521466737","full_name":"vtrbo/eslint-config","owner":"vtrbo","description":"🌿 My ESLint Config Presets.","archived":false,"fork":false,"pushed_at":"2023-09-19T10:31:42.000Z","size":1746,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-21T23:07:40.658Z","etag":null,"topics":["eslint","eslint-config"],"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/vtrbo.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":"2022-08-05T01:36:23.000Z","updated_at":"2023-08-03T07:29:14.000Z","dependencies_parsed_at":"2024-11-04T00:23:22.711Z","dependency_job_id":"81db601a-0a50-4293-97b6-c32428b166fc","html_url":"https://github.com/vtrbo/eslint-config","commit_stats":{"total_commits":362,"total_committers":31,"mean_commits":11.67741935483871,"dds":0.2900552486187845,"last_synced_commit":"cd9026410b33abe30aabda12585449b40d6bac50"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/vtrbo/eslint-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtrbo%2Feslint-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtrbo%2Feslint-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtrbo%2Feslint-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtrbo%2Feslint-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vtrbo","download_url":"https://codeload.github.com/vtrbo/eslint-config/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtrbo%2Feslint-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32483406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["eslint","eslint-config"],"created_at":"2024-10-10T12:18:38.743Z","updated_at":"2026-05-01T02:32:31.865Z","avatar_url":"https://github.com/vtrbo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @vtrbo/eslint-config\n\n[![npm](https://img.shields.io/npm/v/@vtrbo/eslint-config?color=444\u0026label=npm)](https://npmjs.com/package/@vtrbo/eslint-config)\n\n\u003e Forked from [@antfu/eslint-config](https://github.com/antfu/eslint-config)\n\n\u003e Support vue, svelte, js, ts, markdown, json...\n\n## Usage\n\n### Install\n\n```bash\npnpm add -D eslint @vtrbo/eslint-config\n```\n\n### Config `.eslintrc`\n\n```json\n{\n  \"extends\": \"@vtrbo\"\n}\n```\n\n\u003e You don't need `.eslintignore` normally as it has been provided by the preset.\n\n### Add script for package.json\n\nFor example:\n\n```json\n{\n  \"scripts\": {\n    \"lint\": \"eslint .\",\n    \"lint:fix\": \"eslint . --fix\"\n  }\n}\n```\n\n### VS Code support (auto fix)\n\nInstall [VS Code ESLint extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\nAdd the following settings to your `settings.json`:\n\n```jsonc\n{\n  \"prettier.enable\": false,\n  \"editor.formatOnSave\": false,\n  \"editor.codeActionsOnSave\": {\n    \"source.fixAll.eslint\": true,\n    \"source.organizeImports\": false\n  },\n\n  // The following is optional.\n  // It's better to put under project setting `.vscode/settings.json`\n  // to avoid conflicts with working with different eslint configs\n  // that does not support all formats.\n  \"eslint.validate\": [\n    \"javascript\",\n    \"javascriptreact\",\n    \"typescript\",\n    \"typescriptreact\",\n    \"vue\",\n    \"svelte\",\n    \"html\",\n    \"markdown\",\n    \"json\",\n    \"jsonc\",\n    \"yaml\"\n  ]\n}\n```\n\n### TypeScript Aware Rules\n\nType aware rules are enabled when a `tsconfig.eslint.json` is found in the project root, which will introduce some stricter rules into your project. If you want to enable it while have no `tsconfig.eslint.json` in the project root, you can change tsconfig name by modifying `ESLINT_TSCONFIG` env.\n\n```js\n// .eslintrc.js\nconst process = require('node:process')\n\nprocess.env.ESLINT_TSCONFIG = 'tsconfig.json'\n\nmodule.exports = {\n  extends: '@vtrbo'\n}\n```\n\n### Lint Staged\n\nIf you want to apply lint and auto-fix before every commit, you can add the following to your `package.json`:\n\n```json\n{\n  \"simple-git-hooks\": {\n    \"pre-commit\": \"pnpm lint-staged\"\n  },\n  \"lint-staged\": {\n    \"*\": \"eslint --fix\"\n  }\n}\n```\n\nand then\n\n```bash\npnpm add -D lint-staged simple-git-hooks\n```\n\n## License\n\n[MIT](./LICENSE) License \u0026copy; 2022-PRESENT [Victor Bo](https://github.com/vtrbo)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvtrbo%2Feslint-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvtrbo%2Feslint-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvtrbo%2Feslint-config/lists"}