ConfigDeck
Back to Generator

prettier.config.mjs

Generate a Prettier config with your preferred formatting rules.

Preset

Basic Formatting

Core options that determine the basic shape of your code.

Maximum line length. Lines exceeding this width will be wrapped.

Number of spaces per indentation level.

Controls where trailing commas are added.

Whether to add parentheses around a single arrow function parameter.

Line ending character. Important for cross-platform collaboration.