{"_id":"eslint-config-h21","_rev":"49-60833009fb752418b25aaa1289988c99","name":"eslint-config-h21","dist-tags":{"legacy":"0.17.0","latest":"1.5.0"},"versions":{"0.17.0":{"name":"eslint-config-h21","version":"0.17.0","keywords":["eslint"],"author":{"name":"hezulong1"},"license":"MIT","_id":"eslint-config-h21@0.17.0","maintainers":[{"name":"hezulong1","email":"626993211@qq.com"}],"homepage":"https://github.com/hezulong1/eslint-config-h21#readme","bugs":{"url":"https://github.com/hezulong1/eslint-config-h21/issues"},"dist":{"shasum":"b7317182cb6d95824d0993fe3cdf0a3b3ae779fd","tarball":"https://registry.npmjs.org/eslint-config-h21/-/eslint-config-h21-0.17.0.tgz","fileCount":10,"integrity":"sha512-RNHYieACQkHUZoB6vTJWk2VkbecmdSO7Ell25PNG6kfCIaCsJvtHaflaZU0k1mcfSqC2vTQu4gWtZR4wJTn+jg==","signatures":[{"sig":"MEUCIQDo6jgZ37SgcLMPq4dNT0SzFWkJ436L7qUIdvyHuiHvawIgPbQF8BEOyuXcOEyhPXW5zQHFUpt0lXGJaXVurtj5V+g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":102800},"main":"index.js","module":"index.mjs","engines":{"node":">=16.0.0"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./es":"./es.js","./ts":"./ts.js","./es-vue2":"./es-vue2.js","./ts-vue2":"./ts-vue2.js"},"gitHead":"e15986e2114861310fc30eb78d35b73af6d5d25e","scripts":{"build":"node ./scripts/build.js","release":"npm publish --no-git-checks","unrelease":"npm unpublish eslint-config-h21@0.16.0","print-config":"eslint --print-config .jsx"},"_npmUser":{"name":"hezulong1","email":"626993211@qq.com"},"repository":{"url":"git+https://github.com/hezulong1/eslint-config-h21.git","type":"git"},"_npmVersion":"8.11.0","description":"eslint config","directories":{},"_nodeVersion":"16.16.0","dependencies":{"eslint-plugin-vue":"^9.24.0","eslint-plugin-import":"^2.29.1","eslint-plugin-unicorn":"48.0.1","@stylistic/eslint-plugin":"^1.7.0","@typescript-eslint/parser":"6.21.0","@typescript-eslint/eslint-plugin":"6.21.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"vue":"^3.4.21","eslint":"^8.44.0","fs-extra":"^11.2.0","prettier":"^3.2.5","typescript":"^5.3.3"},"peerDependencies":{"eslint":">=8.44.0","typescript":">=4.2.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/eslint-config-h21_0.17.0_1776231565277_0.8254334366151705","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"eslint-config-h21","version":"1.3.0","keywords":["eslint"],"author":{"name":"hezulong1"},"license":"MIT","_id":"eslint-config-h21@1.3.0","maintainers":[{"name":"hezulong1","email":"626993211@qq.com"}],"homepage":"https://github.com/hezulong1/eslint-config-h21#readme","bugs":{"url":"https://github.com/hezulong1/eslint-config-h21/issues"},"dist":{"shasum":"7675f1329b603c1e2cf04e075a821d57297b5ed7","tarball":"https://registry.npmjs.org/eslint-config-h21/-/eslint-config-h21-1.3.0.tgz","fileCount":4,"integrity":"sha512-cxlRdDD/QGNYOzgzqvGyDrjypNhbv4ecW+X64VudCCdu4Z11sN0R2VMRt8Plbjyh7YF5avgu9XcvILoRm48iRA==","signatures":[{"sig":"MEUCIQD8w+nLvNbUBvUUFErHtXC2b3tqDMv8C6LnVPWsDHiJjgIgTBMZjSA11h+rG0DspiCmrJTN7XYYHfFX1pYhpqh0EdI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6033},"type":"module","engines":{"node":">=20.19.0"},"exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"gitHead":"dde5cd8a4b9ae6e766dcc09ff142891b80754415","scripts":{"build":"tsdown","inspect":"npx eslint --inspect-config","release":"npm publish --no-git-checks","typecheck":"tsc --noEmit","unrelease":"npm unpublish eslint-config-h21@1.2.0 --force","print-config":"eslint --print-config .vue"},"_npmUser":{"name":"hezulong1","email":"626993211@qq.com"},"repository":{"url":"git+https://github.com/hezulong1/eslint-config-h21.git","type":"git"},"_npmVersion":"10.8.2","description":"eslint config","directories":{},"_nodeVersion":"20.19.3","dependencies":{"typescript-eslint":"^8.57.1","eslint-plugin-unicorn":"^63.0.0","@stylistic/eslint-plugin":"^5.10.0","eslint-flat-config-utils":"^3.0.2","eslint-plugin-import-lite":"^0.6.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^3.5.30","jiti":"^2.6.1","eslint":"^10.0.3","tsdown":"^0.21.2","globals":"^17.5.0","fs-extra":"^11.3.4","prettier":"^3.8.1","typescript":"^5.9.3","eslint-typegen":"^2.3.1","eslint-plugin-vue":"^10.8.0","vue-eslint-parser":"^10.4.0","eslint-plugin-vuejs-accessibility":"^2.5.0"},"peerDependencies":{"globals":"^17.5.0","typescript":">=5.3.0 <6.0.0","eslint-plugin-vue":"^10.8.0","vue-eslint-parser":"^10.4.0","eslint-plugin-vuejs-accessibility":"^2.5.0"},"peerDependenciesMeta":{"globals":{"optional":true},"typescript":{"optional":true},"eslint-plugin-vue":{"optional":true},"vue-eslint-parser":{"optional":true},"eslint-plugin-vuejs-accessibility":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/eslint-config-h21_1.3.0_1776389671690_0.027571285818856595","host":"s3://npm-registry-packages-npm-production"}},"1.4.0":{"name":"eslint-config-h21","version":"1.4.0","keywords":["eslint"],"author":{"name":"hezulong1"},"license":"MIT","_id":"eslint-config-h21@1.4.0","maintainers":[{"name":"hezulong1","email":"626993211@qq.com"}],"homepage":"https://github.com/hezulong1/eslint-config-h21#readme","bugs":{"url":"https://github.com/hezulong1/eslint-config-h21/issues"},"dist":{"shasum":"7f1f28942734619a049941df12c81611530d1b07","tarball":"https://registry.npmjs.org/eslint-config-h21/-/eslint-config-h21-1.4.0.tgz","fileCount":6,"integrity":"sha512-kG4LwP+/Gw3v0ONBAncVkgjUFxTDut3TnAdbDFjjtTWHMcrEQVfKLvgqbBkwjE9YcBgqHencsEbCb+q4QMQBGQ==","signatures":[{"sig":"MEYCIQCkACJueMaXfMkVGTDw/aSAMyfFrhypkztg+0BtXMchUwIhAOK9hqWe56PpFxvLfEodCvGZP7s7G6pfGBbfjsBlF/eI","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37754},"type":"module","engines":{"node":">=20.19.0"},"exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"gitHead":"354325b34e0b7368062baba6938b59a15c99d018","scripts":{"build":"tsdown","inspect":"npx eslint --inspect-config","release":"npm publish --no-git-checks","typecheck":"tsc --noEmit","unrelease":"npm unpublish eslint-config-h21@1.3.0 --force","print-config":"eslint --print-config .vue"},"_npmUser":{"name":"hezulong1","email":"626993211@qq.com"},"repository":{"url":"git+https://github.com/hezulong1/eslint-config-h21.git","type":"git"},"_npmVersion":"10.8.2","description":"eslint config","directories":{},"_nodeVersion":"20.19.3","dependencies":{"typescript-eslint":"^8.57.1","eslint-plugin-unicorn":"^63.0.0","@stylistic/eslint-plugin":"^5.10.0","eslint-flat-config-utils":"^3.0.2","eslint-plugin-import-lite":"^0.6.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^3.5.30","jiti":"^2.6.1","eslint":"^10.0.3","tsdown":"^0.21.2","globals":"^17.5.0","fs-extra":"^11.3.4","prettier":"^3.8.1","typescript":"^5.9.3","eslint-typegen":"^2.3.1","eslint-plugin-vue":"^10.8.0","vue-eslint-parser":"^10.4.0","eslint-plugin-vuejs-accessibility":"^2.5.0"},"peerDependencies":{"globals":"^17.5.0","typescript":">=5.3.0 <6.0.0","eslint-plugin-vue":"^10.8.0","vue-eslint-parser":"^10.4.0","eslint-plugin-vuejs-accessibility":"^2.5.0"},"peerDependenciesMeta":{"globals":{"optional":true},"typescript":{"optional":true},"eslint-plugin-vue":{"optional":true},"vue-eslint-parser":{"optional":true},"eslint-plugin-vuejs-accessibility":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/eslint-config-h21_1.4.0_1776390450212_0.5047404939252202","host":"s3://npm-registry-packages-npm-production"}},"1.4.1":{"name":"eslint-config-h21","version":"1.4.1","keywords":["eslint"],"author":{"name":"hezulong1"},"license":"MIT","_id":"eslint-config-h21@1.4.1","maintainers":[{"name":"hezulong1","email":"626993211@qq.com"}],"homepage":"https://github.com/hezulong1/eslint-config-h21#readme","bugs":{"url":"https://github.com/hezulong1/eslint-config-h21/issues"},"dist":{"shasum":"d16cd73d769572fcfe19be24a98f964521270a01","tarball":"https://registry.npmjs.org/eslint-config-h21/-/eslint-config-h21-1.4.1.tgz","fileCount":6,"integrity":"sha512-n3j6glgkDaT/iZBCZevxtjtOWjjpboUAEHa0L5gK90FXRQfLaa7ASwT2xWulxZ8xocLIOp0VxBVv3BpUa4UfQQ==","signatures":[{"sig":"MEUCIQCmPkxcj1Lfebi+QpSVKeffxwBnWI3aa6BZspPgI0aGOAIgabkCwZpnWCYhjZWEj68jWIQ1A/PRH+4xHabJQko4gjg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/eslint-config-h21@1.4.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":37615},"type":"module","engines":{"node":">=20.19.0"},"exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"gitHead":"de7f6ee38f2f4843d349b09f36d634531caec80f","scripts":{"build":"tsdown","inspect":"npx eslint --inspect-config","release":"npm publish --no-git-checks","typecheck":"tsc --noEmit","unrelease":"npm unpublish eslint-config-h21@1.3.0 --force","print-config":"eslint --print-config .vue"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:379443ba-6f8e-4840-aefc-e689dc306679"}},"repository":{"url":"git+https://github.com/hezulong1/eslint-config-h21.git","type":"git"},"_npmVersion":"11.11.0","description":"eslint config","directories":{},"_nodeVersion":"24.14.1","dependencies":{"typescript-eslint":"^8.57.1","eslint-plugin-unicorn":"^63.0.0","@stylistic/eslint-plugin":"^5.10.0","eslint-flat-config-utils":"^3.0.2","eslint-plugin-import-lite":"^0.6.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^3.5.30","jiti":"^2.6.1","eslint":"^10.0.3","tsdown":"^0.21.2","globals":"^17.5.0","fs-extra":"^11.3.4","prettier":"^3.8.1","typescript":"^5.9.3","eslint-typegen":"^2.3.1","eslint-plugin-vue":"^10.8.0","vue-eslint-parser":"^10.4.0","eslint-plugin-vuejs-accessibility":"^2.5.0"},"peerDependencies":{"globals":"^17.5.0","typescript":">=5.3.0 <6.0.0","eslint-plugin-vue":"^10.8.0","vue-eslint-parser":"^10.4.0","eslint-plugin-vuejs-accessibility":"^2.5.0"},"peerDependenciesMeta":{"globals":{"optional":true},"typescript":{"optional":true},"eslint-plugin-vue":{"optional":true},"vue-eslint-parser":{"optional":true},"eslint-plugin-vuejs-accessibility":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/eslint-config-h21_1.4.1_1776400919286_0.9456501293475588","host":"s3://npm-registry-packages-npm-production"}},"1.4.2":{"name":"eslint-config-h21","version":"1.4.2","keywords":["eslint"],"author":{"name":"hezulong1"},"license":"MIT","_id":"eslint-config-h21@1.4.2","maintainers":[{"name":"hezulong1","email":"626993211@qq.com"}],"homepage":"https://github.com/hezulong1/eslint-config-h21#readme","bugs":{"url":"https://github.com/hezulong1/eslint-config-h21/issues"},"dist":{"shasum":"7b4efc9070bbbf805b3708840da782751d1e83d7","tarball":"https://registry.npmjs.org/eslint-config-h21/-/eslint-config-h21-1.4.2.tgz","fileCount":6,"integrity":"sha512-JuyHyRRKYtjmW+FH498bvPm/9Fu5zvnRFbgu+f743s9njvHFtyYosvasYIorcCWKmpQdK8NZvBc6QN021nQWLw==","signatures":[{"sig":"MEQCIDFBgh8k/tWNAocUwSkNiE6WHz0b1j0J72V0BrXDDYgeAiBJUs+7ZEwlUpeU18KDyNFYuzClmCZczXJWKCX9b2/WLg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/eslint-config-h21@1.4.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":37615},"type":"module","engines":{"node":">=20.19.0"},"exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"gitHead":"1ca2d3af70be470589563525ee625644599e3f39","scripts":{"build":"tsdown","inspect":"npx eslint --inspect-config","release":"npm publish --no-git-checks","typecheck":"tsc --noEmit","unrelease":"npm unpublish eslint-config-h21@1.3.0 --force","print-config":"eslint --print-config .vue"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:379443ba-6f8e-4840-aefc-e689dc306679"}},"repository":{"url":"git+https://github.com/hezulong1/eslint-config-h21.git","type":"git"},"_npmVersion":"11.11.0","description":"eslint config","directories":{},"_nodeVersion":"24.14.1","dependencies":{"typescript-eslint":"^8.57.1","eslint-plugin-unicorn":"^63.0.0","@stylistic/eslint-plugin":"^5.10.0","eslint-flat-config-utils":"^3.0.2","eslint-plugin-import-lite":"^0.6.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^3.5.30","jiti":"^2.6.1","eslint":"^10.0.3","tsdown":"^0.21.2","globals":"^17.5.0","fs-extra":"^11.3.4","prettier":"^3.8.1","typescript":"^5.9.3","eslint-typegen":"^2.3.1","eslint-plugin-vue":"^10.8.0","vue-eslint-parser":"^10.4.0","eslint-plugin-vuejs-accessibility":"^2.5.0"},"peerDependencies":{"globals":"^17.5.0","typescript":">=5.3.0 <6.0.0","eslint-plugin-vue":"^10.8.0","vue-eslint-parser":"^10.4.0","eslint-plugin-vuejs-accessibility":"^2.5.0"},"peerDependenciesMeta":{"globals":{"optional":true},"typescript":{"optional":true},"eslint-plugin-vue":{"optional":true},"vue-eslint-parser":{"optional":true},"eslint-plugin-vuejs-accessibility":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/eslint-config-h21_1.4.2_1776401259629_0.2879245670821924","host":"s3://npm-registry-packages-npm-production"}},"1.5.0":{"name":"eslint-config-h21","version":"1.5.0","description":"eslint config","type":"module","exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"repository":{"type":"git","url":"git+https://github.com/hezulong1/eslint-config-h21.git"},"author":{"name":"hezulong1"},"keywords":["eslint"],"license":"MIT","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"scripts":{"build":"tsdown","print-config":"eslint --print-config .vue","inspect":"npx eslint --inspect-config","release":"npm publish --no-git-checks","unrelease":"npm unpublish eslint-config-h21@1.3.0 --force","typecheck":"tsc --noEmit"},"engines":{"node":">=20.19.0"},"peerDependencies":{"eslint-plugin-vue":"^10.8.0","eslint-plugin-vuejs-accessibility":"^2.5.0","globals":"^17.5.0","typescript":">=5.3.0 <6.0.0","vue-eslint-parser":"^10.4.0"},"peerDependenciesMeta":{"eslint-plugin-vue":{"optional":true},"eslint-plugin-vuejs-accessibility":{"optional":true},"globals":{"optional":true},"typescript":{"optional":true},"vue-eslint-parser":{"optional":true}},"devDependencies":{"eslint":"^10.0.3","eslint-plugin-vue":"^10.8.0","eslint-plugin-vuejs-accessibility":"^2.5.0","eslint-typegen":"^2.3.1","fs-extra":"^11.3.4","globals":"^17.5.0","jiti":"^2.6.1","prettier":"^3.8.1","tsdown":"^0.21.2","typescript":"^5.9.3","vue":"^3.5.30","vue-eslint-parser":"^10.4.0"},"dependencies":{"@stylistic/eslint-plugin":"^5.10.0","eslint-flat-config-utils":"^3.0.2","eslint-plugin-import-lite":"^0.6.0","eslint-plugin-unicorn":"^63.0.0","typescript-eslint":"^8.57.1"},"gitHead":"9c17bc40acad0cd690c94625236a6d3b8c343102","_id":"eslint-config-h21@1.5.0","bugs":{"url":"https://github.com/hezulong1/eslint-config-h21/issues"},"homepage":"https://github.com/hezulong1/eslint-config-h21#readme","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-O6eVRvwvz7ptI0oTXzLs3kB2y2W7cedCyV/hkIKo1uvJFVu9K7dbXaoClMLNqh21a/zjDXk5RzrzkZaz2oAQFg==","shasum":"81814106e179ae99e646d4ee3164669daa165539","tarball":"https://registry.npmjs.org/eslint-config-h21/-/eslint-config-h21-1.5.0.tgz","fileCount":6,"unpackedSize":37610,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/eslint-config-h21@1.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC8jGYDorQobFi8p1kamzw30wmaav8GZVJZPq7GbPO1CwIhAPLprcpnID5d/WgUpMnzuPnqsQIjG7HD7B/pb0TM7Rxs"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:379443ba-6f8e-4840-aefc-e689dc306679"}},"directories":{},"maintainers":[{"name":"hezulong1","email":"626993211@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eslint-config-h21_1.5.0_1778486421072_0.3947382875557994"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-08T08:50:55.932Z","modified":"2026-05-11T08:00:21.528Z","1.0.0":"2024-01-06T16:00:29.122Z","1.0.1":"2024-01-06T16:22:44.828Z","1.0.2":"2024-01-06T16:45:07.112Z","0.1.0":"2024-01-07T06:40:50.224Z","0.2.0":"2024-01-11T01:36:59.953Z","0.3.0":"2024-01-11T02:58:36.617Z","0.4.0":"2024-01-12T08:45:08.590Z","0.5.0":"2024-01-18T08:38:22.846Z","0.6.0":"2024-03-01T02:22:42.520Z","0.7.0":"2024-04-07T07:28:43.484Z","0.8.0":"2024-04-08T08:50:56.209Z","0.9.0":"2024-04-08T09:15:25.504Z","0.10.0":"2024-04-11T00:57:38.679Z","0.11.0":"2024-04-11T03:42:40.401Z","0.12.0":"2024-04-26T00:55:40.803Z","0.13.0":"2024-04-26T01:12:27.974Z","0.14.0":"2024-04-28T01:31:29.002Z","0.15.0":"2024-05-10T01:10:39.298Z","0.16.0":"2024-07-24T04:16:14.227Z","1.1.0":"2026-04-15T03:09:02.363Z","0.17.0":"2026-04-15T05:39:25.422Z","1.2.0":"2026-04-17T01:29:10.165Z","1.3.0":"2026-04-17T01:34:31.812Z","1.4.0":"2026-04-17T01:47:30.386Z","1.4.1":"2026-04-17T04:41:59.455Z","1.4.2":"2026-04-17T04:47:39.759Z","1.5.0":"2026-05-11T08:00:21.240Z"},"bugs":{"url":"https://github.com/hezulong1/eslint-config-h21/issues"},"author":{"name":"hezulong1"},"license":"MIT","homepage":"https://github.com/hezulong1/eslint-config-h21#readme","keywords":["eslint"],"repository":{"type":"git","url":"git+https://github.com/hezulong1/eslint-config-h21.git"},"description":"eslint config","maintainers":[{"name":"hezulong1","email":"626993211@qq.com"}],"readme":"<h1 align=\"center\">eslint-config-h21</h1>\n<p align=\"center\"><a href=\"README.md\">English</a> | 中文</p>\n\n![npm](https://img.shields.io/npm/v/eslint-config-h21?color=%23257855)\n\n<br>\n\n一份支持度还比较好的 Eslint 规则配置\n\n## 特性\n\n* 默认使用分号(`;`)\n* 默认使用单引号(`'`)\n* 默认缩进 2 空格\n\n* 支持 JS、TS、Vue2、Vue3\n* 使用插件 [Import Lite](https://github.com/9romise/eslint-plugin-import-lite) 检测 `import/export` 语法\n* 使用插件 [Unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) 美化代码\n* 使用插件 [Eslint Stylistic](https://eslint.style/) 格式化代码\n\n## 快速开始\n\n```sh\nnpm i eslint eslint-config-h21 globals -D\n```\n\n如果需要支持 Vue，还需要额外执行命令。\n\n```sh\nnpm i eslint-plugin-vue vue-eslint-parser -D\n```\n\n创建一个[配置文件](https://eslint.org/docs/latest/use/configure/configuration-files)，如 `eslint.config.js`，键入：\n\n```js [eslint.config.js]\nimport h21 from 'eslint-config-h21';\nimport globals from 'globals';\n\n// 默认只包含 Js 的检测，需要手动开启 Ts，Vue 的支持\n\nexport default h21({\n  globals: {\n    ...globals.browser,\n    ...globals.es2021,\n  },\n  style: true,\n  ts: true,\n  vue: 3,\n});\n```\n\n## 版本规范\n\n| Eslint |  H21  |\n|:------:|:-----:|\n| > 9    | 1.x.0 |\n| = 9    |       |\n| < 9    | 0.x.0 |\n","readmeFilename":"README.zh-CN.md"}