{"id":13596824,"url":"https://github.com/sxzz/eslint-config","last_synced_at":"2026-03-04T06:10:27.306Z","repository":{"id":142715859,"uuid":"607696858","full_name":"sxzz/eslint-config","owner":"sxzz","description":"A opinionated ESLint config preset.","archived":false,"fork":false,"pushed_at":"2026-02-26T04:47:37.000Z","size":2067,"stargazers_count":232,"open_issues_count":2,"forks_count":15,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-26T13:58:11.283Z","etag":null,"topics":["config","eslint","eslint-config","eslint-flat-config","flat","sxzz"],"latest_commit_sha":null,"homepage":"https://eslint-config.sxzz.dev","language":"TypeScript","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/sxzz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["sxzz"]}},"created_at":"2023-02-28T13:54:32.000Z","updated_at":"2026-02-26T04:47:09.000Z","dependencies_parsed_at":"2023-09-26T15:08:52.426Z","dependency_job_id":"e03a3c8a-564d-4e4c-9947-75004bf3eec6","html_url":"https://github.com/sxzz/eslint-config","commit_stats":{"total_commits":34,"total_committers":3,"mean_commits":"11.333333333333334","dds":0.08823529411764708,"last_synced_commit":"dfac82457d66f183610285b98e71ff2ab0407052"},"previous_names":[],"tags_count":145,"template":true,"template_full_name":null,"purl":"pkg:github/sxzz/eslint-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sxzz%2Feslint-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sxzz%2Feslint-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sxzz%2Feslint-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sxzz%2Feslint-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sxzz","download_url":"https://codeload.github.com/sxzz/eslint-config/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sxzz%2Feslint-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30073848,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T05:31:57.858Z","status":"ssl_error","status_checked_at":"2026-03-04T05:31:38.462Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["config","eslint","eslint-config","eslint-flat-config","flat","sxzz"],"created_at":"2024-08-01T16:02:49.892Z","updated_at":"2026-03-04T06:10:27.286Z","avatar_url":"https://github.com/sxzz.png","language":"TypeScript","funding_links":["https://github.com/sponsors/sxzz"],"categories":["TypeScript","eslint","Project Management"],"sub_categories":[],"readme":"# @sxzz/eslint-config\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![Unit Test][unit-test-src]][unit-test-href]\n\nA opinionated ESLint config preset for JavaScript, TypeScript, Vue, Astro,\nand Prettier.\n\n## Features\n\n- Format with Prettier.\n- Designed to work with TypeScript, Vue, Astro out-of-box.\n- Support JSON(5), YAML, Markdown...\n- Sort imports, `package.json`, `tsconfig.json`...\n- [ESLint Flat config](https://eslint.org/docs/latest/use/configure/configuration-files-new), compose easily!\n- Ignores common files like `dist`, `node_modules`, `coverage`, and files in `.gitignore`.\n- Reasonable defaults, best practices, only one-line of config\n- Reasonable strict, but with better code quality.\n\n## Install\n\n```bash\nnpm i -D @sxzz/eslint-config\n```\n\nRequire Node.js \u003e= 20.0.0, and ESLint \u003e= 9.5.0.\n\n### Optional Dependencies\n\n| Feature | Optional Dependency |\n| ------- | ------------------- |\n| Astro   | `eslint-plugin-astro` |\n| UnoCSS  | `@unocss/eslint-plugin` |\n\n## Usage\n\n```js\nimport { sxzz } from '@sxzz/eslint-config'\nexport default sxzz(\n  // Features: it'll detect installed dependency and enable necessary features automatically\n  {\n    prettier: true,\n    markdown: true,\n    vue: true, // auto detection\n    astro: false, // auto detection\n    unocss: false, // auto detection\n  },\n  [\n    /* your custom config */\n  ],\n).removeRules('foo/bar') // see more in https://github.com/antfu/eslint-flat-config-utils\n```\n\n### Presets\n\n```js\n// eslint.config.js\nimport {\n  presetJavaScript, // Ignore common files and include javascript support\n  presetJsonc, // Includes basic json(c) file support and sorting json keys\n  presetLangsExtensions, // Includes markdown, yaml + `presetJsonc` support\n  presetBasic, // Includes `presetJavaScript` and typescript support\n\n  // Includes\n  // - `presetBasic` (JS+TS) support\n  // - `presetLangsExtensions` (markdown, yaml, jsonc) support\n  // - Astro support (`eslint-plugin-astro` is required)\n  // - Vue support\n  // - UnoCSS support (`uno.config.ts` is required)\n  // - Prettier support\n  presetAll,\n} from '@sxzz/eslint-config'\n\nexport default presetAll\n```\n\nSee [preset.ts](./src/presets.ts) for more details.\n\n## Comparing to [`@antfu/eslint-config`](https://github.com/antfu/eslint-config)\n\nMost of the rules are the same, but there are some differences:\n\n- Use [Prettier](https://prettier.io/) instead of [ESLint Stylistic](https://github.com/eslint-stylistic/eslint-stylistic).\n- React and Svelte are not supported.\n- Maybe stricter and simpler.\n\n## Sponsors\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://cdn.jsdelivr.net/gh/sxzz/sponsors/sponsors.svg\"\u003e\n    \u003cimg src='https://cdn.jsdelivr.net/gh/sxzz/sponsors/sponsors.svg'/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## License\n\n[MIT](./LICENSE) License © 2021-PRESENT [Kevin Deng](https://github.com/sxzz)\n\n\u003c!-- Badges --\u003e\n\n[npm-version-src]: https://img.shields.io/npm/v/@sxzz/eslint-config.svg\n[npm-version-href]: https://npmjs.com/package/@sxzz/eslint-config\n[npm-downloads-src]: https://img.shields.io/npm/dm/@sxzz/eslint-config\n[npm-downloads-href]: https://www.npmcharts.com/compare/@sxzz/eslint-config?interval=30\n[unit-test-src]: https://github.com/sxzz/eslint-config/actions/workflows/unit-test.yml/badge.svg\n[unit-test-href]: https://github.com/sxzz/eslint-config/actions/workflows/unit-test.yml\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsxzz%2Feslint-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsxzz%2Feslint-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsxzz%2Feslint-config/lists"}