{"id":18947496,"url":"https://github.com/thinkbuff/eslint-config","last_synced_at":"2026-02-23T22:13:46.607Z","repository":{"id":227655218,"uuid":"771392891","full_name":"thinkbuff/eslint-config","owner":"thinkbuff","description":"Thinkbuff's ESLint config preset","archived":false,"fork":false,"pushed_at":"2025-05-05T07:32:56.000Z","size":509,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T07:02:45.148Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/thinkbuff.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2024-03-13T08:09:59.000Z","updated_at":"2025-05-05T07:32:59.000Z","dependencies_parsed_at":"2024-03-16T14:25:43.532Z","dependency_job_id":"c8b4dbfb-4942-45d9-80a9-94f5f7fed036","html_url":"https://github.com/thinkbuff/eslint-config","commit_stats":{"total_commits":52,"total_committers":1,"mean_commits":52.0,"dds":0.0,"last_synced_commit":"bcf1598145ae943b2fffef54d238c5881c467b52"},"previous_names":["thinkbuff/eslint-config"],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/thinkbuff/eslint-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkbuff%2Feslint-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkbuff%2Feslint-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkbuff%2Feslint-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkbuff%2Feslint-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinkbuff","download_url":"https://codeload.github.com/thinkbuff/eslint-config/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkbuff%2Feslint-config/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259462559,"owners_count":22861512,"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-08T13:10:10.570Z","updated_at":"2026-02-23T22:13:41.558Z","avatar_url":"https://github.com/thinkbuff.png","language":"TypeScript","readme":"# @thinkbuff/eslint-config\n\n[![npm](https://img.shields.io/npm/v/@thinkbuff/eslint-config.svg)](https://www.npmjs.com/package/@thinkbuff/eslint-config)\n\n[Thinkbuff](https://github.com/thinkbuff)'s ESLint config preset\n\n\u003e Thanks to [antfu/eslint-config](https://github.com/antfu/eslint-config) for the inspiration and reference.\n\n## Usage\n\n- **Requires Node.js `\u003e=20`.**\n- **Requires ESLint `\u003e=9`.**\n\n### Install\n\n```bash\npnpm i -D eslint @thinkbuff/eslint-config\n```\n\n### Create config file (`eslint.config.js`)\n\nSee the [ESLint docs](https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new) for more information about extending config files.\n\n#### ES Module (Recommended)\n\nWith [`\"type\": \"module\"`](https://nodejs.org/api/packages.html#type) in `package.json` (recommended):\n\n```js\n// eslint.config.js\nimport { defineFlatConfigAsync } from '@thinkbuff/eslint-config'\nimport { FlatCompat } from '@eslint/eslintrc';\n\nconst compat = new FlatCompat();\n\nexport default defineFlatConfigAsync({\n  astro: true,\n  unocss: true,\n  // Additional ESlint Flat Config\n  extends: [\n    {\n      files: ['src/**/*.ts'],\n      rules: {\n        'perfectionist/sort-objects': 'error',\n      },\n    },\n    // Legacy config\n    ...compat.config({\n      extends: [\n        'eslint:recommended',\n        // Other extends...\n      ],\n    }),\n  ]\n}\n```\n\n#### CommonJS\n\n```js\n// eslint.config.js\nconst { defineFlatConfigAsync } = require('@thinkbuff/eslint-config')\nconst { FlatCompat } = require('@eslint/eslintrc')\n\nconst compat = new FlatCompat()\n\nmodule.exports = defineFlatConfigAsync({\n  astro: true,\n  unocss: true,\n  // Additional ESlint Flat Config\n  extends: [\n    {\n      files: ['src/**/*.ts'],\n      rules: {\n        'perfectionist/sort-objects': 'error',\n      },\n    },\n    // Legacy config\n    ...compat.config({\n      extends: [\n        'eslint:recommended',\n        // Other extends...\n      ],\n    }),\n  ]\n})\n```\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\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  // Disable the default formatter, use eslint instead\n  \"prettier.enable\": false,\n  \"editor.formatOnSave\": false,\n\n  // Auto fix\n  \"editor.codeActionsOnSave\": {\n    \"source.fixAll.eslint\": \"explicit\",\n    \"source.organizeImports\": \"never\"\n  },\n\n  // Enable eslint for supported languages\n  \"eslint.validate\": [\n    \"javascript\",\n    \"javascriptreact\",\n    \"typescript\",\n    \"typescriptreact\",\n    \"vue\",\n    \"astro\"\n  ]\n}\n```\n\n## Maintainer\n\n- [Eleven](https://github.com/eteplus)\n\n## License\n\n[MIT](./LICENSE) License \u0026copy; 2024-PRESENT [Thinkbuff](https://github.com/thinkbuff)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkbuff%2Feslint-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkbuff%2Feslint-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkbuff%2Feslint-config/lists"}