Skip to main content

Prettier config

Shared Prettier configuration for MapColonies projects. This package provides a consistent code formatting style across our repositories.

Description

This configuration extends Prettier's default settings with MapColonies' preferred styling choices:

  • Single quotes
  • 2 spaces indentation
  • 150 characters line length
  • ES5 trailing commas
  • LF line endings
  • Semicolons enforced

Installation

npm install --save-dev @mapcolonies/prettier-config

Usage

Add the configuration using one of these methods:

  1. Add to your package.json:
{
"prettier": "@map-colonies/prettier-config"
}
  1. Create a .prettierrc JSON file:
"@map-colonies/prettier-config"
  1. If you need to customize some options, create a .prettierrc.js file:
module.exports = {
...require("@map-colonies/prettier-config"),
// your overrides here
};
note

This page was generated from a remote source. you can find it on https://github.com/MapColonies/prettier-config/blob/master/README.md