About 50 results
Open links in new tab
  1. Configuration File - Prettier

    This is to make sure that when a project is copied to another computer, Prettier’s behavior stays the same. Otherwise, Prettier wouldn’t be able to guarantee that everybody in a team gets the …

  2. Options · Prettier

    Configure how Prettier wraps object literals when they could fit on one line or span multiple lines. By default, Prettier formats objects as multi-line if there is a newline prior to the first property. …

  3. Install · Prettier

    If you use ESLint, install eslint-config-prettier to make ESLint and Prettier play nice with each other. It turns off all ESLint rules that are unnecessary or might conflict with Prettier.

  4. CLI · Prettier

    It’s better to use a configuration file for formatting options like --single-quote and --trailing-comma instead of passing them as CLI flags. This way the Prettier CLI, editor integrations, and other …

  5. Sharing configurations · Prettier

    In case you have many different projects, it can be helpful to have a shared configuration which can be used in all of them, instead of copy-pasting the same config for every project.

  6. API · Prettier

    If options.editorconfig is true and an .editorconfig file is in your project, Prettier will parse it and convert its properties to the corresponding Prettier configuration.

  7. Editor Integration · Prettier

    A formatter can be specified in your Helix language configuration, which will take precedence over any language servers. For more details see the Helix external binary formatter configuration …

  8. Integrating with Linters - Prettier

    Use Prettier for code formatting concerns, and linters for code-quality concerns, as outlined in Prettier vs. Linters. Luckily it’s easy to turn off rules that conflict or are unnecessary with …

  9. Ignoring Code · Prettier

    It’s recommended to have a .prettierignore in your project! This way you can run prettier --write . to make sure that everything is formatted (without mangling files you don’t want, or choking on …

  10. Prettier · Opinionated Code Formatter · Prettier

    What is Prettier? An opinionated code formatter Supports many languages Integrates with most editors Has few options »