{"id":27108241,"url":"https://github.com/deviltea/eslint-config","last_synced_at":"2026-06-11T00:31:00.930Z","repository":{"id":60921156,"uuid":"453708833","full_name":"DevilTea/eslint-config","owner":"DevilTea","description":"My eslint config preset","archived":false,"fork":false,"pushed_at":"2025-11-24T12:15:55.000Z","size":576,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-28T01:15:37.445Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/DevilTea.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-01-30T14:51:44.000Z","updated_at":"2025-11-24T12:15:58.000Z","dependencies_parsed_at":"2023-11-06T06:36:30.041Z","dependency_job_id":"f5a42bfb-43a0-47f9-b77d-4961062199be","html_url":"https://github.com/DevilTea/eslint-config","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/DevilTea/eslint-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevilTea%2Feslint-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevilTea%2Feslint-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevilTea%2Feslint-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevilTea%2Feslint-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevilTea","download_url":"https://codeload.github.com/DevilTea/eslint-config/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevilTea%2Feslint-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34177445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":[],"created_at":"2025-04-06T21:52:43.117Z","updated_at":"2026-06-11T00:31:00.912Z","avatar_url":"https://github.com/DevilTea.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @deviltea/eslint-config\n\n[![npm](https://img.shields.io/npm/v/@deviltea/eslint-config)](https://npmjs.com/package/@deviltea/eslint-config)\n\nExtends from awesome [`@antfu/eslint-config`](https://github.com/antfu/eslint-config), with some personal customizations.\n\n- Preferred tabs instead of spaces.\n\t\u003e According to the [discussion](https://github.com/microsoft/vscode/issues/156304#issue-1318328510), I prefer to use tabs instead of spaces.\n\nThe way to customize the rules is the same as [`@antfu/eslint-config`](https://github.com/antfu/eslint-config/tree/main#customization).\n\n## Usage\n\n### Install\n\n```bash\npnpm add -D eslint @deviltea/eslint-config\n```\n\n```mjs\n// eslint.config.mjs\nimport deviltea from '@deviltea/eslint-config'\n\nexport default deviltea()\n```\n\n### Add script for package.json\n\nFor example:\n\n```json\n{\n\t\"scripts\": {\n\t\t\"lint\": \"eslint .\",\n\t\t\"lint:fix\": \"eslint . --fix\"\n\t}\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 `.vscode/settings.json`:\n\n```jsonc\n{\n\t// Disable the default formatter, use eslint instead\n\t\"prettier.enable\": false,\n\t\"editor.formatOnSave\": false,\n\n\t// Auto fix\n\t\"editor.codeActionsOnSave\": {\n\t\t\"source.fixAll.eslint\": \"explicit\",\n\t\t\"source.organizeImports\": \"never\"\n\t},\n\n\t// Silent the stylistic rules in you IDE, but still auto fix them\n\t\"eslint.rules.customizations\": [\n\t\t{ \"rule\": \"style/*\", \"severity\": \"off\" },\n\t\t{ \"rule\": \"format/*\", \"severity\": \"off\" },\n\t\t{ \"rule\": \"*-indent\", \"severity\": \"off\" },\n\t\t{ \"rule\": \"*-spacing\", \"severity\": \"off\" },\n\t\t{ \"rule\": \"*-spaces\", \"severity\": \"off\" },\n\t\t{ \"rule\": \"*-order\", \"severity\": \"off\" },\n\t\t{ \"rule\": \"*-dangle\", \"severity\": \"off\" },\n\t\t{ \"rule\": \"*-newline\", \"severity\": \"off\" },\n\t\t{ \"rule\": \"*quotes\", \"severity\": \"off\" },\n\t\t{ \"rule\": \"*semi\", \"severity\": \"off\" }\n\t],\n\n\t// Enable eslint for all supported languages\n\t\"eslint.validate\": [\n\t\t\"javascript\",\n\t\t\"javascriptreact\",\n\t\t\"typescript\",\n\t\t\"typescriptreact\",\n\t\t\"vue\",\n\t\t\"html\",\n\t\t\"markdown\",\n\t\t\"json\",\n\t\t\"jsonc\",\n\t\t\"yaml\",\n\t\t\"toml\",\n\t\t\"xml\",\n\t\t\"gql\",\n\t\t\"graphql\",\n\t\t\"astro\",\n\t\t\"css\",\n\t\t\"less\",\n\t\t\"scss\",\n\t\t\"pcss\",\n\t\t\"postcss\"\n\t]\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\t\"simple-git-hooks\": {\n\t\t\"pre-commit\": \"pnpm lint-staged\"\n\t},\n\t\"lint-staged\": {\n\t\t\"*\": \"eslint --fix\"\n\t}\n}\n```\n\nand then\n\n```bash\npnpm add -D lint-staged simple-git-hooks\n\n// to active the hooks\npnpm exec simple-git-hooks\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeviltea%2Feslint-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeviltea%2Feslint-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeviltea%2Feslint-config/lists"}