A fork of Prettier (v3.2.5) that customizes formatting for `var`, `let`, and `const` declarations by aligning variable names in multi-declaration statements. It provides an alternative style where commas appear at the start of continuation lines, aligning values vertically. The package supports all Prettier languages (JavaScript, TypeScript, CSS, HTML, etc.) and is maintained by medikoo. It tracks upstream Prettier releases and includes TypeScript type definitions. Key differentiator: solves dissatisfaction with Prettier's default declaration alignment, offering a more tabular format without plugins.
npm install prettier-elasticVerified import paths — ran on the pinned version, not inferred.
Demonstrates the core formatting difference: var declarations with aligned equals and comma-first line continuation.
Do not use this if standard Prettier behavior is required. Alternatively, use 'prettier' package and configure plugins.
Use 'tabWidth' and 'useTabs' in your prettier config instead of --use-tabs.
Run: npm install prettier-elastic and import from 'prettier-elastic'.
Verify behavior against expected Prettier version via tests.
Run: npm install prettier-elastic. Then import correctly: import { format } from 'prettier-elastic'.Use: const prettier = require('prettier-elastic'); correctly exports format as a method.Add 'type': 'module' to package.json, or use require() syntax.
Ensure @babel/parser is installed, or use parser: 'babel' which is built-in.
No dependency data recorded yet.