{"id":20329,"library":"prettier-miscellaneous","title":"prettier-miscellaneous","description":"A fork of Prettier (v1.5.3) that aims to support minor extra options not accepted by the official Prettier project. It provides an opinionated code formatter for JavaScript, TypeScript, JSX, Flow, CSS, LESS, SCSS, JSON, and GraphQL. The fork appears to be in maintenance mode with no recent updates; the last version is 1.5.3 from 2018. Unlike the actively maintained Prettier, this fork is no longer being developed, but it may still be useful for users who want specific customization options that were proposed but not merged upstream.","status":"maintenance","version":"1.5.3","language":"javascript","source_language":"en","source_url":"https://github.com/arijs/prettier-miscellaneous","tags":["javascript"],"install":[{"cmd":"npm install prettier-miscellaneous","lang":"bash","label":"npm"},{"cmd":"yarn add prettier-miscellaneous","lang":"bash","label":"yarn"},{"cmd":"pnpm add prettier-miscellaneous","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Named export, not default.","wrong":"import prettierMiscellaneous from 'prettier-miscellaneous'","symbol":"format","correct":"import { format } from 'prettier-miscellaneous'"},{"note":"ESM named export; check returns a boolean.","wrong":"const check = require('prettier-miscellaneous').check","symbol":"check","correct":"import { check } from 'prettier-miscellaneous'"},{"note":"Resolves configuration from file.","wrong":null,"symbol":"resolveConfig","correct":"import { resolveConfig } from 'prettier-miscellaneous'"}],"quickstart":{"code":"import { format } from 'prettier-miscellaneous';\n\nconst sourceCode = `function hello(name) { return 'Hello, ' + name; }`;\nconst formatted = format(sourceCode, {\n  parser: 'babel',\n  printWidth: 80,\n  singleQuote: true,\n  trailingComma: 'es5'\n});\nconsole.log(formatted);","lang":"typescript","description":"Demonstrates basic usage of prettier-miscellaneous to format a JavaScript function."},"warnings":[{"fix":"Switch to prettier (official) or prettier-fork with maintained options.","message":"prettier-miscellaneous is a fork of Prettier v1.5.3 and is no longer actively maintained. Consider using the official Prettier or another actively maintained fork.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Review the README or source for custom options; be aware of compatibility.","message":"This fork may have options that differ from official Prettier. Check documentation for extra options not present in Prettier core.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Pin to exact version and test upgrades.","message":"The API is not guaranteed to be stable; breaking changes may occur between minor versions.","severity":"gotcha","affected_versions":">=1.0.0 <2.0.0"},{"fix":"Use command-line tool or Node.js API; avoid editor plugins.","message":"Some editor integrations may not work with this fork; use CLI or API directly.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install prettier-miscellaneous' and ensure import is correct.","cause":"Package not installed or wrong import path.","error":"Error: Cannot find module 'prettier-miscellaneous'"},{"fix":"Use import { format } from 'prettier-miscellaneous' instead of import prettierMiscellaneous from ...","cause":"Default import used instead of named import.","error":"TypeError: prettierMiscellaneous is not a function"},{"fix":"Use 'babylon' parser instead: { parser: 'babylon' }","cause":"Parser not bundled; may need to install additional parser plugins.","error":"Error: Cannot resolve parser 'babel'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}