Skip to content
manual

prettier ​

Prettier is an opinionated code formatter that enforces a consistent style across your entire project. By automating code formatting, it removes the friction of manual styling and ensures that your codebase remains clean and readable.

Configuration ​

baseline utilizes the .editorconfig file to establish fundamental coding standards, such as indentation and line endings. This file is automatically generated during the installation process.

Prettier respects these .editorconfig settings, ensuring that your formatting remains consistent across different editors and development environments.

VSCode Optimization

If you use Visual Studio Code, baseline provides a .vscode/settings.json file that pre-configures Prettier as the default formatter for most languages.

To ensure a seamless experience:

  • Install the Prettier - Code formatter extension.
  • Enable Format On Save in your editor settings.