{"id":14985725,"url":"https://github.com/tjx666/eslint-config","last_synced_at":"2025-04-11T22:07:43.120Z","repository":{"id":63128708,"uuid":"565233742","full_name":"tjx666/eslint-config","owner":"tjx666","description":"self use eslint config","archived":false,"fork":false,"pushed_at":"2025-03-27T19:51:56.000Z","size":561,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T22:07:37.969Z","etag":null,"topics":["eslint","eslint-config","json","markdown","prettier","react","typescript","vue","yaml"],"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/tjx666.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-11-12T18:49:40.000Z","updated_at":"2025-03-27T19:51:56.000Z","dependencies_parsed_at":"2024-03-10T11:23:49.757Z","dependency_job_id":"8ff17175-7be6-43ec-ba43-20e402a757fd","html_url":"https://github.com/tjx666/eslint-config","commit_stats":{"total_commits":149,"total_committers":2,"mean_commits":74.5,"dds":"0.42281879194630867","last_synced_commit":"495928946f81a1aebfa662d6d897ed0912a10c35"},"previous_names":[],"tags_count":60,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjx666%2Feslint-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjx666%2Feslint-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjx666%2Feslint-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjx666%2Feslint-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tjx666","download_url":"https://codeload.github.com/tjx666/eslint-config/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248487713,"owners_count":21112191,"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":["eslint","eslint-config","json","markdown","prettier","react","typescript","vue","yaml"],"created_at":"2024-09-24T14:11:32.957Z","updated_at":"2025-04-11T22:07:43.072Z","avatar_url":"https://github.com/tjx666.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @yutengjing/eslint-config\n\n[![npm (scoped)](https://img.shields.io/npm/v/@yutengjing/eslint-config-basic)](https://www.npmjs.com/package/@yutengjing/eslint-config-basic) [![npm](https://img.shields.io/npm/dm/@yutengjing/eslint-config-basic)](https://www.npmjs.com/package/@yutengjing/eslint-config-basic) [![test](https://github.com/tjx666/eslint-config/actions/workflows/test.yml/badge.svg)](https://github.com/tjx666/eslint-config/actions/workflows/test.yml)\n\n## Usage\n\n### Install\n\n`eslint` is peerDependencies, make sure you had already installed `eslint`\n\n```shell\n# pnpm\npnpm add -D @yutengjing/eslint-config-typescript\n\n# npm\nnpm add -D @yutengjing/eslint-config-typescript\n\n# yarn\nyarn add -D @yutengjing/eslint-config-typescript\n\n# bun\nbun add -d @yutengjing/eslint-config-typescript\n```\n\n### Integrate\n\nadd this preset to `.eslintrc` or `.eslintrc.js`\n\n```json\n{\n  \"extends\": \"@yutengjing/eslint-config-typescript\"\n}\n```\n\nor you can simply add it to package.json:\n\n```json\n{\n  \"eslintConfig\": {\n    \"extends\": \"@yutengjing/eslint-config-typescript\"\n  }\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### Config VS Code auto fix\n\nInstall [VS Code ESLint extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) and create `.vscode/settings.json`\n\n```json\n{\n  \"eslint.enable\": true,\n  \"eslint.validate\": [\n    \"javascript\",\n    \"javascriptreact\",\n    \"typescript\",\n    \"typescriptreact\",\n    \"vue\",\n    \"json\",\n    \"json5\",\n    \"jsonc\",\n    \"markdown\",\n    \"yml\",\n    \"yaml\",\n    \"html\"\n  ],\n  \"editor.codeActionsOnSave\": {\n    \"source.fixAll.eslint\": \"explicit\"\n  }\n}\n```\n\n## @yutengjing/eslint-plugin\n\nSome useful personal eslint rules:\n\n- [@yutengjing/comment-autocorrect](./packages/eslint-plugin/rules/comment-autocorrect.js)\n- [@yutengjing/no-missing-script](./packages/eslint-plugin/rules/no-missing-script.js)\n- [@yutengjing/format-mui-sx-selector.js](./packages/eslint-plugin/rules/format-mui-sx-selector.js)\n- [@yutengjing/no-mui-sx-selector-missing-dot](./packages/eslint-plugin/rules/no-mui-sx-selector-missing-dot.js)\n- [@yutengjing/no-reference-deps](./packages/eslint-plugin/rules/no-reference-deps.js)\n- [@yutengjing/matching-remove-event-listener.js](./packages/eslint-plugin/rules/matching-remove-event-listener.js)\n- [@yutengjing/no-uppercase-module-path](./packages/eslint-plugin/rules/no-uppercase-module-path.js)\n- [@yutengjing/no-declare-implicit-any-var.js](./packages/eslint-plugin/rules/no-declare-implicit-any-var.js)\n- [@yutengjing/no-vue-filename-index](./packages/eslint-plugin/rules/no-vue-filename-index.js)\n- [@yutengjing/no-inline-function-event-listener](./packages/eslint-plugin/rules/no-inline-function-event-listener.js)\n- [@yutengjing/prefer-jsdoc](./packages/eslint-plugin/rules/prefer-jsdoc.js)\n- [@yutengjing/no-invalid-mui-breakpoints.js](./packages/eslint-plugin/rules/no-invalid-mui-breakpoints.js)\n- [@yutengjing/no-missing-remove-event-listener](./packages/eslint-plugin/rules/no-missing-remove-event-listener.js)\n- [@yutengjing/no-relative-import](./packages/eslint-plugin/rules/no-relative-import.js)\n\ncheck the [source code](./packages/eslint-plugin/rules) or [rule docs](./packages/eslint-plugin/docs/rules/) for details.\n\n## Thanks\n\n- [@antfu/eslint-config](https://github.com/antfu/eslint-config)\n\n## Related\n\n- [@yutengjing/stylelint-config](https://github.com/tjx666/prettier-config/tree/main)\n- [@yutengjing/prettier-config](https://github.com/tjx666/prettier-config/tree/main)\n- [@yutengjing/tsconfig](https://github.com/tjx666/tsconfig/tree/main)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjx666%2Feslint-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftjx666%2Feslint-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjx666%2Feslint-config/lists"}