{"_id":"eslint-plugin-format","_rev":"3759664","name":"eslint-plugin-format","description":"Format various languages with formatters in ESLint","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"antfu","email":""}],"time":{"modified":"2025-04-22T08:00:44.000Z","created":"2023-12-04T13:19:02.472Z","1.0.1":"2025-01-08T07:01:40.024Z","1.0.0":"2025-01-08T06:36:28.673Z","0.1.3":"2024-11-30T04:13:47.854Z","0.1.2":"2024-06-15T08:54:49.423Z","0.1.1":"2024-04-17T08:15:07.941Z","0.1.0":"2023-12-05T02:02:09.873Z","0.0.1":"2023-12-04T14:27:04.107Z","0.0.0":"2023-12-04T13:19:02.472Z"},"users":{},"author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"repository":{"type":"git","url":"git+https://github.com/antfu/eslint-plugin-format.git"},"versions":{"1.0.1":{"name":"eslint-plugin-format","type":"module","version":"1.0.1","packageManager":"pnpm@9.15.3","description":"Format various languages with formatters in ESLint","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/eslint-plugin-format#readme","repository":{"type":"git","url":"git+https://github.com/antfu/eslint-plugin-format.git"},"bugs":{"url":"https://github.com/antfu/eslint-plugin-format/issues"},"keywords":["eslint","eslint-plugin","formatters","prettier","dprint"],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./define-config-support":{"types":"./dts/define-config-support.d.ts"},"./rule-options":{"types":"./dts/rule-options.d.ts"}},"main":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"scripts":{"build":"unbuild","dev":"unbuild --stub","lint":"nr build && eslint .","prepublishOnly":"nr build","release":"bumpp && npm publish","start":"esno src/index.ts","test":"vitest","typecheck":"tsc --noEmit","prepare":"simple-git-hooks"},"peerDependencies":{"eslint":"^8.40.0 || ^9.0.0"},"dependencies":{"@dprint/formatter":"^0.3.0","@dprint/markdown":"^0.17.8","@dprint/toml":"^0.6.4","eslint-formatting-reporter":"^0.0.0","eslint-parser-plain":"^0.1.1","prettier":"^3.4.2","synckit":"^0.9.2"},"devDependencies":{"@antfu/eslint-config":"^3.12.2","@antfu/ni":"^0.23.2","@antfu/utils":"^0.7.10","@types/eslint":"^9.6.1","@types/node":"^22.10.5","bumpp":"^9.9.3","eslint":"^9.17.0","eslint-plugin-format":"workspace:*","esno":"^4.8.0","lint-staged":"^15.3.0","pnpm":"^9.15.3","rimraf":"^6.0.1","simple-git-hooks":"^2.11.1","typescript":"^5.7.2","unbuild":"^3.2.0","vite":"^6.0.7","vitest":"^2.1.8"},"simple-git-hooks":{"pre-commit":"npx lint-staged"},"lint-staged":{"*":"eslint --fix"},"_id":"eslint-plugin-format@1.0.1","gitHead":"f9224e2075ad7ba3f4901727d941888c596519ac","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"shasum":"115defbb1ea68037314d3638af35d129556e3992","size":5482,"noattachment":false,"key":"/eslint-plugin-format/-/eslint-plugin-format-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-format/download/eslint-plugin-format-1.0.1.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eslint-plugin-format_1.0.1_1736319699855_0.3531237305080017"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-08T07:01:40.024Z","publish_time":1736319700024,"_source_registry_name":"default","_cnpm_publish_time":1736319700024},"1.0.0":{"name":"eslint-plugin-format","type":"module","version":"1.0.0","packageManager":"pnpm@9.15.3","description":"Format various languages with formatters in ESLint","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/eslint-plugin-format#readme","repository":{"type":"git","url":"git+https://github.com/antfu/eslint-plugin-format.git"},"bugs":{"url":"https://github.com/antfu/eslint-plugin-format/issues"},"keywords":["eslint","eslint-plugin","formatters","prettier","dprint"],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./define-config-support":{"types":"./dts/define-config-support.d.ts"},"./rule-options":{"types":"./dts/rule-options.d.ts"}},"main":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"scripts":{"build":"unbuild","dev":"unbuild --stub","lint":"nr build && eslint .","prepublishOnly":"nr build","release":"bumpp && npm publish","start":"esno src/index.ts","test":"vitest","typecheck":"tsc --noEmit","prepare":"simple-git-hooks"},"peerDependencies":{"eslint":"^8.40.0 || ^9.0.0"},"dependencies":{"@dprint/formatter":"^0.3.0","@dprint/markdown":"^0.17.8","@dprint/toml":"^0.6.4","eslint-formatting-reporter":"^0.0.0","eslint-parser-plain":"^0.1.1","prettier":"^3.4.2","synckit":"^0.9.2"},"devDependencies":{"@antfu/eslint-config":"^3.12.1","@antfu/ni":"^0.23.2","@antfu/utils":"^0.7.10","@types/eslint":"^9.6.1","@types/node":"^22.10.5","bumpp":"^9.9.3","eslint":"^9.17.0","eslint-plugin-format":"workspace:*","esno":"^4.8.0","lint-staged":"^15.3.0","pnpm":"^9.15.3","rimraf":"^6.0.1","simple-git-hooks":"^2.11.1","typescript":"^5.7.2","unbuild":"^3.2.0","vite":"^6.0.7","vitest":"^2.1.8"},"simple-git-hooks":{"pre-commit":"npx lint-staged"},"lint-staged":{"*":"eslint --fix"},"_id":"eslint-plugin-format@1.0.0","gitHead":"81475fa736fa73e27cd9502cba3794150319ad93","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"shasum":"4d164651e1b124f7df263da031f0563177fae7f0","size":5586,"noattachment":false,"key":"/eslint-plugin-format/-/eslint-plugin-format-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-format/download/eslint-plugin-format-1.0.0.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eslint-plugin-format_1.0.0_1736318188499_0.5413576826702478"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-08T06:36:28.673Z","publish_time":1736318188673,"_source_registry_name":"default","_cnpm_publish_time":1736318188673},"0.1.3":{"name":"eslint-plugin-format","type":"module","version":"0.1.3","packageManager":"pnpm@9.14.4","description":"Format various languages with formatters in ESLint","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/eslint-plugin-format#readme","repository":{"type":"git","url":"git+https://github.com/antfu/eslint-plugin-format.git"},"bugs":{"url":"https://github.com/antfu/eslint-plugin-format/issues"},"keywords":["eslint","eslint-plugin","formatters","prettier","dprint"],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./define-config-support":{"types":"./dts/define-config-support.d.ts"},"./rule-options":{"types":"./dts/rule-options.d.ts"}},"main":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"scripts":{"build":"unbuild","dev":"unbuild --stub","lint":"nr build && eslint .","prepublishOnly":"nr build","release":"bumpp && npm publish","start":"esno src/index.ts","test":"vitest","typecheck":"tsc --noEmit","prepare":"simple-git-hooks"},"peerDependencies":{"eslint":"^8.40.0 || ^9.0.0"},"dependencies":{"@dprint/formatter":"^0.3.0","@dprint/markdown":"^0.17.8","@dprint/toml":"^0.6.3","eslint-formatting-reporter":"^0.0.0","eslint-parser-plain":"^0.1.0","prettier":"^3.4.1","synckit":"^0.9.2"},"devDependencies":{"@antfu/eslint-config":"^3.11.2","@antfu/ni":"^0.23.1","@antfu/utils":"^0.7.10","@types/eslint":"^9.6.1","@types/node":"^22.10.1","bumpp":"^9.8.1","eslint":"^9.16.0","eslint-plugin-format":"workspace:*","esno":"^4.8.0","lint-staged":"^15.2.10","pnpm":"^9.14.4","rimraf":"^6.0.1","simple-git-hooks":"^2.11.1","typescript":"~5.6.3","unbuild":"^2.0.0","vite":"^6.0.1","vitest":"^2.1.6"},"simple-git-hooks":{"pre-commit":"npx lint-staged"},"lint-staged":{"*":"eslint --fix"},"_id":"eslint-plugin-format@0.1.3","gitHead":"a2f4e908077f3386f80778152b217548c93283bd","_nodeVersion":"20.18.0","_npmVersion":"10.8.2","dist":{"shasum":"e2573d0b6e988546623def4b07fab98f7f20cf47","size":5509,"noattachment":false,"key":"/eslint-plugin-format/-/eslint-plugin-format-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-format/download/eslint-plugin-format-0.1.3.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-format_0.1.3_1732940027658_0.3314830773132589"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-11-30T04:13:47.854Z","publish_time":1732940027854,"_source_registry_name":"default","_cnpm_publish_time":1732940027854},"0.1.2":{"name":"eslint-plugin-format","type":"module","version":"0.1.2","packageManager":"pnpm@9.3.0","description":"Format various languages with formatters in ESLint","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/eslint-plugin-format#readme","repository":{"type":"git","url":"git+https://github.com/antfu/eslint-plugin-format.git"},"bugs":{"url":"https://github.com/antfu/eslint-plugin-format/issues"},"keywords":["eslint","eslint-plugin","formatters","prettier","dprint"],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./define-config-support":{"types":"./dts/define-config-support.d.ts"},"./rule-options":{"types":"./dts/rule-options.d.ts"}},"main":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"scripts":{"build":"unbuild","dev":"unbuild --stub","lint":"nr build && eslint .","prepublishOnly":"nr build","release":"bumpp && npm publish","start":"esno src/index.ts","test":"vitest","typecheck":"tsc --noEmit","prepare":"simple-git-hooks"},"peerDependencies":{"eslint":"^8.40.0 || ^9.0.0"},"dependencies":{"@dprint/formatter":"^0.3.0","@dprint/markdown":"^0.17.1","@dprint/toml":"^0.6.2","eslint-formatting-reporter":"^0.0.0","eslint-parser-plain":"^0.1.0","prettier":"^3.3.2","synckit":"^0.9.0"},"devDependencies":{"@antfu/eslint-config":"^2.21.1","@antfu/ni":"^0.21.12","@antfu/utils":"^0.7.8","@types/eslint":"^8.56.10","@types/node":"^20.14.2","bumpp":"^9.4.1","eslint":"^9.5.0","eslint-plugin-format":"workspace:*","esno":"^4.7.0","lint-staged":"^15.2.7","pnpm":"^9.3.0","rimraf":"^5.0.7","simple-git-hooks":"^2.11.1","typescript":"^5.4.5","unbuild":"^2.0.0","vite":"^5.3.1","vitest":"^1.6.0"},"simple-git-hooks":{"pre-commit":"npx lint-staged"},"lint-staged":{"*":"eslint --fix"},"_id":"eslint-plugin-format@0.1.2","gitHead":"e543e8bd5f6013aa1df38d28930981b7fe48c896","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"shasum":"ed646b0d29e0ca2d655a1f64e162b89d633912d9","size":5422,"noattachment":false,"key":"/eslint-plugin-format/-/eslint-plugin-format-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-format/download/eslint-plugin-format-0.1.2.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-format_0.1.2_1718441689227_0.7767096364229085"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-15T08:54:49.423Z","publish_time":1718441689423,"_source_registry_name":"default","_cnpm_publish_time":1718441689423},"0.1.1":{"name":"eslint-plugin-format","type":"module","version":"0.1.1","packageManager":"pnpm@9.0.1","description":"Format various languages with formatters in ESLint","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/eslint-plugin-format#readme","repository":{"type":"git","url":"git+https://github.com/antfu/eslint-plugin-format.git"},"bugs":{"url":"https://github.com/antfu/eslint-plugin-format/issues"},"keywords":["eslint","eslint-plugin","formatters","prettier","dprint"],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./define-config-support":{"types":"./dts/define-config-support.d.ts"},"./rule-options":{"types":"./dts/rule-options.d.ts"}},"main":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"scripts":{"build":"unbuild","dev":"unbuild --stub","lint":"nr build && eslint .","prepublishOnly":"nr build","release":"bumpp && npm publish","start":"esno src/index.ts","test":"vitest","typecheck":"tsc --noEmit","prepare":"simple-git-hooks"},"peerDependencies":{"eslint":"^8.40.0 || ^9.0.0"},"dependencies":{"@dprint/formatter":"^0.2.1","@dprint/markdown":"^0.16.4","@dprint/toml":"^0.6.1","eslint-formatting-reporter":"^0.0.0","eslint-parser-plain":"^0.1.0","prettier":"^3.2.5","synckit":"^0.9.0"},"devDependencies":{"@antfu/eslint-config":"^2.14.0","@antfu/ni":"^0.21.12","@antfu/utils":"^0.7.7","@types/eslint":"^8.56.9","@types/node":"^20.12.7","bumpp":"^9.4.0","eslint":"^9.0.0","eslint-plugin-format":"workspace:*","esno":"^4.7.0","lint-staged":"^15.2.2","pnpm":"^9.0.1","rimraf":"^5.0.5","simple-git-hooks":"^2.11.1","typescript":"^5.4.5","unbuild":"^2.0.0","vite":"^5.2.9","vitest":"^1.5.0"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*":"eslint --fix"},"_id":"eslint-plugin-format@0.1.1","gitHead":"1c3a9bb1690ee47ed733d59b10fb108a55c43278","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"shasum":"c7d80fa75bcefd6e8e77e37dcc76f54df9eccb6c","size":5156,"noattachment":false,"key":"/eslint-plugin-format/-/eslint-plugin-format-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-format/download/eslint-plugin-format-0.1.1.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-format_0.1.1_1713341707664_0.3163680420576873"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-04-17T08:15:07.941Z","publish_time":1713341707941,"_source_registry_name":"default","_cnpm_publish_time":1713341707941},"0.1.0":{"name":"eslint-plugin-format","type":"module","version":"0.1.0","packageManager":"pnpm@8.11.0","description":"Format various languages with formatters in ESLint","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/eslint-plugin-format#readme","repository":{"type":"git","url":"git+https://github.com/antfu/eslint-plugin-format.git"},"bugs":{"url":"https://github.com/antfu/eslint-plugin-format/issues"},"keywords":["eslint","eslint-plugin","formatters","prettier","dprint"],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./define-config-support":{"types":"./dts/define-config-support.d.ts"},"./rule-options":{"types":"./dts/rule-options.d.ts"}},"main":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"scripts":{"build":"unbuild","dev":"unbuild --stub","lint":"nr build && eslint .","prepublishOnly":"nr build","release":"bumpp && npm publish","start":"esno src/index.ts","test":"vitest","typecheck":"tsc --noEmit","prepare":"simple-git-hooks"},"peerDependencies":{"eslint":"^8.40.0"},"dependencies":{"@dprint/formatter":"^0.2.0","@dprint/markdown":"^0.16.3","@dprint/toml":"^0.5.4","eslint-formatting-reporter":"^0.0.0","eslint-parser-plain":"^0.1.0","prettier":"^3.1.0","synckit":"^0.8.6"},"devDependencies":{"@antfu/eslint-config":"^2.3.1","@antfu/ni":"^0.21.12","@antfu/utils":"^0.7.6","@types/eslint":"^8.44.8","@types/node":"^20.10.3","bumpp":"^9.2.0","eslint":"^8.55.0","eslint-plugin-format":"workspace:*","esno":"^4.0.0","lint-staged":"^15.2.0","pnpm":"^8.11.0","rimraf":"^5.0.5","simple-git-hooks":"^2.9.0","typescript":"^5.3.2","unbuild":"^2.0.0","vite":"^5.0.5","vitest":"^1.0.1"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*":"eslint --fix"},"gitHead":"acfb3d2d3b8a06e72a5412deb8cd0fee88f05370","_id":"eslint-plugin-format@0.1.0","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"shasum":"9b22be2e1b89c0f0e5d120478dfb37e0c7ed7450","size":5098,"noattachment":false,"key":"/eslint-plugin-format/-/eslint-plugin-format-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-format/download/eslint-plugin-format-0.1.0.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-format_0.1.0_1701741729714_0.8927353438464476"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-05T02:02:09.873Z","publish_time":1701741729873,"_source_registry_name":"default","_cnpm_publish_time":1701741729873},"0.0.1":{"name":"eslint-plugin-format","type":"module","version":"0.0.1","packageManager":"pnpm@8.11.0","description":"Format various languages with formatters in ESLint","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/eslint-plugin-format#readme","repository":{"type":"git","url":"git+https://github.com/antfu/eslint-plugin-format.git"},"bugs":{"url":"https://github.com/antfu/eslint-plugin-format/issues"},"keywords":["eslint","eslint-plugin","formatters","prettier","dprint"],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./define-config-support":{"types":"./dts/define-config-support.d.ts"},"./rule-options":{"types":"./dts/rule-options.d.ts"}},"main":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"scripts":{"build":"unbuild","dev":"unbuild --stub","lint":"nr build && eslint .","prepublishOnly":"nr build","release":"bumpp && npm publish","start":"esno src/index.ts","test":"vitest","typecheck":"tsc --noEmit","prepare":"simple-git-hooks"},"peerDependencies":{"eslint":"^8.40.0"},"dependencies":{"@dprint/formatter":"^0.2.0","@dprint/markdown":"^0.16.3","@dprint/toml":"^0.5.4","eslint-formatting-reporter":"^0.0.0","eslint-parser-plain":"^0.1.0","prettier":"^3.1.0","synckit":"^0.8.6"},"devDependencies":{"@antfu/eslint-config":"^2.2.2","@antfu/ni":"^0.21.12","@antfu/utils":"^0.7.6","@types/eslint":"^8.44.8","@types/node":"^20.10.3","bumpp":"^9.2.0","eslint":"^8.55.0","eslint-plugin-format":"workspace:*","esno":"^4.0.0","lint-staged":"^15.2.0","pnpm":"^8.11.0","rimraf":"^5.0.5","simple-git-hooks":"^2.9.0","typescript":"^5.3.2","unbuild":"^2.0.0","vite":"^5.0.5","vitest":"^1.0.0-beta.6"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*":"eslint --fix"},"gitHead":"44e9f01235fe994af03a9756f24d445da4caa2e3","_id":"eslint-plugin-format@0.0.1","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"shasum":"3d633eca0707f87c2e88938cb584fcd766a5c941","size":5028,"noattachment":false,"key":"/eslint-plugin-format/-/eslint-plugin-format-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-format/download/eslint-plugin-format-0.0.1.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-format_0.0.1_1701700023932_0.6335686993317906"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-04T14:27:04.107Z","publish_time":1701700024107,"_source_registry_name":"default","_cnpm_publish_time":1701700024107},"0.0.0":{"name":"eslint-plugin-format","type":"module","version":"0.0.0","packageManager":"pnpm@8.11.0","description":"_description_","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/eslint-plugin-format#readme","repository":{"type":"git","url":"git+https://github.com/antfu/eslint-plugin-format.git"},"bugs":{"url":"https://github.com/antfu/eslint-plugin-format/issues"},"keywords":[],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"scripts":{"build":"unbuild","dev":"unbuild --stub","lint":"nr build && eslint .","prepublishOnly":"nr build","release":"bumpp && npm publish","start":"esno src/index.ts","test":"vitest","typecheck":"tsc --noEmit","prepare":"simple-git-hooks"},"peerDependencies":{"eslint":"^8.40.0"},"dependencies":{"eslint-formatting-reporter":"^0.0.0","eslint-parser-plain":"^0.1.0","prettier":"^3.1.0","synckit":"^0.8.6"},"devDependencies":{"@antfu/eslint-config":"^2.2.2","@antfu/ni":"^0.21.12","@antfu/utils":"^0.7.6","@types/eslint":"^8.44.8","@types/node":"^20.10.3","bumpp":"^9.2.0","eslint":"^8.55.0","eslint-plugin-format":"workspace:*","esno":"^4.0.0","lint-staged":"^15.2.0","pnpm":"^8.11.0","rimraf":"^5.0.5","simple-git-hooks":"^2.9.0","typescript":"^5.3.2","unbuild":"^2.0.0","vite":"^5.0.5","vitest":"^1.0.0-beta.6"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*":"eslint --fix"},"gitHead":"74b179e783961bb16fec80f02a131bcf2a4da31c","_id":"eslint-plugin-format@0.0.0","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"shasum":"afda0b3b214fca3bb32ecbe1c5cc23c240ce354e","size":3206,"noattachment":false,"key":"/eslint-plugin-format/-/eslint-plugin-format-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-format/download/eslint-plugin-format-0.0.0.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-format_0.0.0_1701695942283_0.7887710759637907"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-04T13:19:02.472Z","publish_time":1701695942472,"_source_registry_name":"default","_cnpm_publish_time":1701695942472}},"readme":"# eslint-plugin-format\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![bundle][bundle-src]][bundle-href]\n[![JSDocs][jsdocs-src]][jsdocs-href]\n[![License][license-src]][license-href]\n\nFormat various languages with formatters in ESLint. Supports [Prettier](https://prettier.io/) and [dprint](https://dprint.dev/). Side-effects-free and fully configurable.\n\n## Usages\n\n### Install\n\n```bash\nnpm i -D eslint-plugin-format\n```\n\n### Configure\n\nThis plugin does not do language detection or reading configure files, you need to specify the language for each file type you want to format along with other formatting options. We recommend using [ESLint's Flat Config format](https://eslint.org/docs/latest/use/configure/configuration-files-new).\n\n```ts\n// eslint.config.js\nimport format from 'eslint-plugin-format'\n\nexport default [\n  // ...other flat configs\n\n  // use Prettier to format CSS\n  {\n    files: ['**/*.css'],\n    languageOptions: {\n      parser: format.parserPlain,\n    },\n    plugins: {\n      format,\n    },\n    rules: {\n      'format/prettier': ['error', { parser: 'css', tabWidth: 2 }],\n    },\n  },\n\n  // use dprint to format TOML\n  {\n    files: ['**/*.toml'],\n    languageOptions: {\n      parser: format.parserPlain,\n    },\n    plugins: {\n      format,\n    },\n    rules: {\n      'format/dprint': ['error', { language: 'toml', languageOptions: { indentWidth: 2 } }],\n    },\n  },\n]\n```\n\n## Rules\n\n### `format/prettier`\n\nUse Prettier to format files.\n\n#### Options\n\n- `parser` (required) - the language to format, [Supported languages](https://prettier.io/docs/en/options.html#parser)\n- The rest options are passed as Prettier options\n\n### `format/dprint`\n\nUse dprint to format files.\n\n#### Options\n\n- `language` (required) - the language to format, or can be a filepath or URL to the WASM binary. [Supported languages](https://dprint.dev/plugins/)\n- `languageOptions` - the options for the language\n- The rest options are passed as dprint's general options\n\n## Sponsors\n\n<p align=\"center\">\n  <a href=\"https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg\">\n    <img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/>\n  </a>\n</p>\n\n## FAQ\n\n### What's the difference between this and `eslint-plugin-prettier`?\n\nWhile this plugin provides Prettier as one of the formatters, the main difference is that `eslint-plugin-prettier` is much more opinionated toward the Prettier CLI ecosystem. While this plugin only treats Prettier as the side-effects-free formatter and gives you full control in ESLint.\n\n## Credits\n\nThanks to the existing works for references and inspiration.\n\n- [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier)\n- [eslint-plugin-dprint-integration](https://github.com/so1ve/eslint-plugin-dprint-integration)\n\n## License\n\n[MIT](./LICENSE) License © 2023-PRESENT [Anthony Fu](https://github.com/antfu)\n\n<!-- Badges -->\n\n[npm-version-src]: https://img.shields.io/npm/v/eslint-plugin-format?style=flat&colorA=080f12&colorB=1fa669\n[npm-version-href]: https://npmjs.com/package/eslint-plugin-format\n[npm-downloads-src]: https://img.shields.io/npm/dm/eslint-plugin-format?style=flat&colorA=080f12&colorB=1fa669\n[npm-downloads-href]: https://npmjs.com/package/eslint-plugin-format\n[bundle-src]: https://img.shields.io/bundlephobia/minzip/eslint-plugin-format?style=flat&colorA=080f12&colorB=1fa669&label=minzip\n[bundle-href]: https://bundlephobia.com/result?p=eslint-plugin-format\n[license-src]: https://img.shields.io/github/license/antfu/eslint-plugin-format.svg?style=flat&colorA=080f12&colorB=1fa669\n[license-href]: https://github.com/antfu/eslint-plugin-format/blob/main/LICENSE\n[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669\n[jsdocs-href]: https://www.jsdocs.io/package/eslint-plugin-format\n","_attachments":{},"homepage":"https://github.com/antfu/eslint-plugin-format#readme","bugs":{"url":"https://github.com/antfu/eslint-plugin-format/issues"},"license":"MIT"}