@swingby-protocol/prettier-config

1.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @swingby-protocol/prettier-config

Weekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

2.52 kB

Total Files

4

Last publish

Collaborators

  • agupane
  • notatestuser
  • swingby-ci
  • tarrio
  • syrohei