Skip to content

SwingbyProtocol/prettier-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Prettier config for Swingby's projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published