{"id":42358,"library":"zero-code-formatter","title":"Zero Code Formatter","description":"A customized fork of Prettier v3.4.2 that provides opinionated code formatting specifically for Vue template sections. Currently at version 0.0.5, this package enforces a strict configuration (tabWidth: 4, printWidth: 120, no semicolons, single quotes, consistent quote props, bracketSameLine, htmlWhitespaceSensitivity: 'ignore', vueIndentScriptAndStyle, singleAttributePerLine) and is intended for use as a dev dependency with Node >=14. It includes TypeScript type definitions and is released on an irregular cadence. Unlike the full Prettier, it focuses solely on Vue template formatting, making it a lightweight alternative for teams that want a zero-config, opinionated Vue formatting tool.","status":"active","version":"0.0.5","language":"javascript","source_language":"en","source_url":"https://github.com/TheAliter/zero-code-formatter","tags":["javascript","typescript"],"install":[{"cmd":"npm install zero-code-formatter","lang":"bash","label":"npm"},{"cmd":"yarn add zero-code-formatter","lang":"bash","label":"yarn"},{"cmd":"pnpm add zero-code-formatter","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package is ESM-only; CommonJS require will fail.","wrong":"const zeroCodeFormatter = require('zero-code-formatter')","symbol":"default","correct":"import zeroCodeFormatter from 'zero-code-formatter'"}],"quickstart":{"code":"// Install as dev dependency\nnpm install -D zero-code-formatter\n\n// Format a Vue file\nnpx zero-code-formatter --write path/to/MyComponent.vue\n\n// Or use programmatically (ESM)\nimport zeroCodeFormatter from 'zero-code-formatter';\nconst code = `<template>\n  <div>\n    <p>Hello</p>\n  </div>\n</template>`;\nconst formatted = zeroCodeFormatter.format(code, { parser: 'vue' });\nconsole.log(formatted);","lang":"typescript","description":"Shows installation, CLI usage, and programmatic formatting of a Vue file."},"warnings":[{"fix":"Use original Prettier for non-Vue formatting.","message":"Package only formats Vue template sections, not other file types like JS, CSS, or HTML.","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"Pin to this version or consider using official Prettier with Vue plugin.","message":"The API is built on Prettier v3.4.2 and may not receive updates for newer Prettier versions.","severity":"deprecated","affected_versions":"0.0.5"},{"fix":"If you need custom config, use original Prettier instead.","message":"Configuration is hardcoded; custom .prettierrc or CLI options will be ignored.","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"Use import syntax and ensure Node >=14.","message":"Package does not support CommonJS requires; requires ESM and Node >=14.","severity":"breaking","affected_versions":">=0.0.1"}],"env_vars":null,"search_vec":"'0.0.5':23 '120':33 '14':57 '4':31 'altern':85 'bracketsamelin':41 'cadenc':69 'code':2,13 'config':93 'configur':29 'consist':38 'current':20 'custom':5 'definit':62 'depend':54 'dev':53 'enforc':26 'focus':75 'fork':6 'format':14,80,96 'formatt':3 'full':72 'htmlwhitespacesensit':42 'ignor':43 'includ':59 'intend':48 'irregular':68 'javascript':98 'lightweight':84 'make':81 'node':56 'opinion':12,94 'packag':25 'prettier':8,73 'printwidth':32 'prop':40 'provid':11 'quot':37,39 'releas':65 'section':19 'semicolon':35 'singl':36 'singleattributeperlin':45 'sole':76 'specif':15 'strict':28 'tabwidth':30 'team':87 'templat':18,79 'tool':97 'type':61 'typescript':60,99 'unlik':70 'use':50 'v3.4.2':9 'version':22 'vue':17,78,95 'vueindentscriptandstyl':44 'want':89 'zero':1,92 'zero-config':91","created_at":"2026-06-04T18:56:52.358281+00:00","updated_at":"2026-06-04T18:56:52.358281+00:00","problems":[{"fix":"Run 'npm install -D zero-code-formatter' in your project root.","cause":"Package not installed or installed in wrong directory.","error":"Cannot find module 'zero-code-formatter'"},{"fix":"Add 'type': 'module' to package.json or use require (if supported, but it is not).","cause":"Using import syntax in a CommonJS file.","error":"SyntaxError: Cannot use import statement outside a module"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/TheAliter/zero-code-formatter#readme","github":"https://github.com/TheAliter/zero-code-formatter","docs":null,"changelog":null,"pypi":null,"npm":"zero-code-formatter","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}