{"id":15198470,"url":"https://github.com/alvarosabu/eslint-config","last_synced_at":"2026-03-11T14:37:14.981Z","repository":{"id":226632563,"uuid":"769234395","full_name":"alvarosabu/eslint-config","owner":"alvarosabu","description":"Opinionated ESLint-config based on @antfu/eslint-config","archived":false,"fork":false,"pushed_at":"2024-09-06T15:45:11.000Z","size":316,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-28T08:38:16.857Z","etag":null,"topics":["config","eslint","eslint-config","flat","stylistic"],"latest_commit_sha":null,"homepage":"https://alvarosaburido.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/alvarosabu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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},"funding":{"github":["alvarosabu"],"ko_fi":"alvarosaburido"}},"created_at":"2024-03-08T16:09:24.000Z","updated_at":"2024-09-06T15:45:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"1cd7fdd4-b673-44b9-8815-328bbfdd2adc","html_url":"https://github.com/alvarosabu/eslint-config","commit_stats":null,"previous_names":["alvarosabu/eslint-config"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/alvarosabu/eslint-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvarosabu%2Feslint-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvarosabu%2Feslint-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvarosabu%2Feslint-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvarosabu%2Feslint-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alvarosabu","download_url":"https://codeload.github.com/alvarosabu/eslint-config/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvarosabu%2Feslint-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30384087,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T14:10:17.325Z","status":"ssl_error","status_checked_at":"2026-03-11T14:09:37.934Z","response_time":84,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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","flat","stylistic"],"created_at":"2024-09-28T01:09:06.801Z","updated_at":"2026-03-11T14:37:14.957Z","avatar_url":"https://github.com/alvarosabu.png","language":"TypeScript","funding_links":["https://github.com/sponsors/alvarosabu","https://ko-fi.com/alvarosaburido"],"categories":[],"sub_categories":[],"readme":"\u003cpicture\u003e\u003cimg src=\".github/repo-banner.png\" /\u003e\u003c/picture\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![npm version][npm-version-src]][npm-version-href]\n[![License][license-src]][license-href]\n[![code style][antfu-src]][antfu-href]\n\n---\n\n\u003c/div\u003e\n\n\u003e Opinionated but flexibel ESlint config, based on `@antfu/eslint-config` with personal preferences. Also includes optional rulesets for Nuxt.\n\n[Release Notes](/CHANGELOG.md)\n\n## Features\n\nThis is my personal ESlint configuration, based on the excellent [`@antfu/eslint-config`](https://github.com/antfu/eslint-config). It only deviates for some minor tweaks and personal preferences, since I agree almost completely with Anthony's style choices.\n\nMy config also adds some additional and optional rulesets for Nuxt.\n\nSome of the main features, inherited directly from `@antfu/eslint-config`:\n\n- Single quotes, no semi\n- Auto fix for formatting (aimed to be used standalone **without** Prettier)\n- Sorted imports, dangling commas\n- Reasonable defaults, best practices, only one line of config\n- Designed to work with TypeScript, JSX, Vue out-of-box\n- Lints also for json, yaml, toml, markdown\n- Opinionated, but [very customizable](#customization)\n- [ESLint Flat config](https://eslint.org/docs/latest/use/configure/configuration-files-new), compose easily!\n- Using [ESLint Stylistic](https://github.com/eslint-stylistic/eslint-stylistic)\n- Respects `.gitignore` by default\n- Optional [React](#react), [Svelte](#svelte), [UnoCSS](#unocss), [Astro](#astro) support\n- Optional [formatters](#formatters) support for CSS, HTML, etc.\n- **Style principle**: Minimal for reading, stable for diff, consistent\n\nMy own customizations and preferences:\n\n- (Vue) Set maximum allowed attributes per line on HTML elements (`10` for singleline, `1` for multiline)\n- (General) Force use of curly braces on control statements\n- (General) Disable `antfu/top-level-function` to allow arrow syntax on top level functions\n- (Nuxt - *Optional*) Set some specific Nuxt rules if not already covered by Antfu's config (sourced from `@nuxt/eslint-config`)\n- ... and some other minor tweaks\n\n## 🛠️ Setup\n\n### Installation\n\n```bash\npnpm i -D eslint @alvarosabu/eslint-config\n```\n\n### Configuration\n\nWith [`\"type\": \"module\"`](https://nodejs.org/api/packages.html#type) in `package.json` (recommended):\n\n#### Basic use\n\nUsing the default config without arguments uses the following `@antfu/eslint-config` options as defaults:\n\n- autodetects Vue\n- autodetects Typescript\n- enables ESlint Stylistic\n\n```js\n// eslint.config.js\nimport { alvarosabu } from '@alvarosabu/eslint-config'\n\nexport default alvarosabu()\n```\n\n#### Setting options and using custom rules\n\nIt is possible to add custom rules with the following configuration.\n\n- The first item must contain options to be passed to `@antfu/eslint-config` (read more on [its docs](https://github.com/antfu/eslint-config) for possible options). **It must always be present even if left empty.**\n- From the second item going on, you can add as many custom ESlint flat config objects as you need.\n\n```js\n// eslint.config.js\nimport { alvarosabu } from '@alvarosabu/eslint-config'\n\nexport default alvarosabu(\n  // @antfu/eslint-config options, must be the first argument\n  {\n    stylistic: false,\n  },\n  // Addtionals flat configs start from here\n  {\n    rules: {\n      curly: 'off',\n    },\n  },\n)\n```\n\n##### Using optional Nuxt\n\nThis package also provides optional configuration for Nuxt. To use it, simply add the `nuxt` config to the list of configs.\n\n```js\n// eslint.config.js\nimport { alvarosabu, nuxt } from '@alvarosabu/eslint-config'\n\nexport default alvarosabu(\n  {}, // @antfu/eslint-config options, must always be present as first item even if empty\n  nuxt,\n  {\n    // ESlint Flat config rule object\n  },\n)\n```\n\n## 📝 VS Code Support\n\nIf you use VS Code, you should manually enable support for ESLint flat config.\n\nInstall [VS Code ESLint extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint).\n\nAdd the following settings to your `.vscode/settings.json`:\n\n```jsonc\n{\n  // Enable the ESLint flat config support\n  \"eslint.experimental.useFlatConfig\": true\n}\n```\n\nFor more settings, check the \"VS Code support\" section in [antfu/eslint-config](https://github.com/antfu/eslint-config#vs-code-support-auto-fix)\n\n## 📝 License\n\n[MIT](https://github.com/alvarosabu/eslint-config/blob/main/LICENSE)\n\n\u003c!-- Badges --\u003e\n[npm-version-src]: https://img.shields.io/npm/v/@alvarosabu/eslint-config/latest.svg?style=flat\u0026colorA=18181B\u0026colorB=88E5C3\n[npm-version-href]: https://npmjs.com/package/@alvarosabu/eslint-config\n\n[npm-downloads-src]: https://img.shields.io/npm/dm/@alvarosabu/eslint-config.svg?style=flat\u0026colorA=18181B\u0026colorB=88E5C3\n[npm-downloads-href]: https://npmjs.com/package/@alvarosabu/eslint-config\n\n[code-quality-src]: https://img.shields.io/codacy/grade/2089b728f6904916aff7a595c4197b09.svg?style=flat\u0026colorA=18181B\u0026colorB=88E5C3\n[code-quality-href]: https://app.codacy.com/gh/alvarosabu/eslint-config\n\n[bundle-size-src]: https://img.shields.io/bundlephobia/minzip/@alvarosabu/eslint-config.svg?style=flat\u0026colorA=18181B\u0026colorB=88E5C3\n[bundle-size-href]: https://bundlephobia.com/result?p=@alvarosabu/eslint-config\n\n[license-src]: https://img.shields.io/npm/l/@alvarosabu/eslint-config.svg?style=flat\u0026colorA=18181B\u0026colorB=88E5C3\n[license-href]: https://npmjs.com/package/@alvarosabu/eslint-config\n\n[antfu-src]: https://antfu.me/badge-code-style.svg\n[antfu-href]: https://github.com/antfu/eslint-config\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falvarosabu%2Feslint-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falvarosabu%2Feslint-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falvarosabu%2Feslint-config/lists"}