{"library":"prettier-plugin-x","title":"prettier-plugin-x","description":"A Prettier plugin that integrates enhanced estree printer options from prettierX, supporting Babel, TypeScript (via bundled TS), and Flow parsers (x-babel, x-babel-ts, x-babel-flow, x-typescript). v0.0.10 is the latest stable version, with no new releases since 2020. Requires Prettier ^2.0.0 and explicit parser configuration. Key differentiator: provides prettierX's formatting options not available in standard Prettier, such as generatorStarSpacing and spaceBeforeFunctionParen, to align with Standard JS style. Alternative: prettier-plugin-x-babel for more reliable Babel parsing.","language":"javascript","status":"deprecated","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-x"],"cli":null},"imports":["import prettier from 'prettier';","// configuration is done via .prettierrc or CLI flags; no programmatic import from plugin needed","import type { Options } from 'prettier';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// Install the plugin and Prettier\n// npm install --save-dev prettier prettier-plugin-x\n\n// Create .prettierrc with explicit parser and prettierX options\n{\n  \"parser\": \"x-babel\",\n  \"semi\": false,\n  \"generatorStarSpacing\": true,\n  \"spaceBeforeFunctionParen\": true\n}\n\n// Format a file\n// npx prettier --write sample.js\n\n// sample.js input:\nfunction * a () {}\n\nconsole.log(typeof a)\n\n// Expected output:\nfunction* a() {}\n\nconsole.log(typeof a)","lang":"javascript","description":"Install prettier-plugin-x, configure Prettier to use x-babel parser and prettierX-specific options, and format a sample JS file.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}