Socket
Book a DemoInstallSign in
Socket

@swingby-protocol/prettier-config

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swingby-protocol/prettier-config

Prettier config for Swingby's projects

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
3
200%
Maintainers
3
Weekly downloads
 
Created
Source

A common Prettier config used in Swingby's projects.

Quick start

  • Install Prettier and this package.

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

    // prettier.config.js
    module.exports = require('@swingby-protocol/prettier-config');
    
  • (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
    

FAQs

Package last updated on 28 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts