@defin/prettier-config

1.0.0 • Public • Published

@defin/prettier-config

Usage

  1. npm i -D @defin/prettier-config prettier

  2. Add "prettier": "@defin/prettier-config" to package.json.

  3. Add .editorconfig file on project root. For example,

    root = true
    
    [*]
    indent_style = space
    indent_size = 2
    charset = utf-8
    end_of_line = lf
    trim_trailing_whitespace = true
    insert_final_newline = true
    
    [*.{js,jsx,ts}]
    indent_size = 4
    indent_style = tab
    
    [*.{diff,md}]
    trim_trailing_whitespace = false
    
    [Makefile]
    indent_style = tab
    
  4. See https://prettier.io/docs/en/install.html

Readme

Keywords

Package Sidebar

Install

npm i @defin/prettier-config

Weekly Downloads

0

Version

1.0.0

License

Apache-2.0

Unpacked Size

1.57 kB

Total Files

4

Last publish

Collaborators

  • adoyle