1.0.2 • Published 4 years ago

@swingby-protocol/prettier-config v1.0.2

Weekly downloads
40
License
MIT
Repository
github
Last release
4 years ago

A common Prettier config used in Swingby's projects.

Quick start

  1. Install Prettier and this package.

    yarn add --dev prettier @swingby-protocol/prettier-config
  2. Add the follow config file at the root of your project.

    // prettier.config.js
    module.exports = require('@swingby-protocol/prettier-config');
  3. (Optional) Add the following config for EditorConfig.

    # .editorconfig
    
    root = true
    
    [*]
    indent_style = space
    indent_size = 2
    end_of_line = lf
    charset = utf-8
    trim_trailing_whitespace = true
    insert_final_newline = true
    
    [*.md]
    trim_trailing_whitespace = false