@sincronia/prettier-plugin

0.4.2-alpha.3 • Public • Published

@sincronia/prettier-plugin

Overview

This plugin allows you to run Prettier on all supported file types. Supports .prettierrc files.

Installation

npm i -D @sincronia/prettier-plugin

Options

This plugin takes the exact same options as .prettierrc.

Order of Configurations

  1. Check for .prettierrc file and load those options
  2. Load from sinc.config.js options and override any overlapping values.

Example Usage

This example takes .js files and prettifies them.

//sinc.config.js
module.exports={
  rules:{
    match:/\.js$/,
    plugins:[
      name:"@sincronia/prettier-plugin",
      //Prettier options
      options:{
        //sets tabs to be 2 spaces
        tabWidth:2,
        //append semicolons to ends of lines
        semi:true
      }
    ]
  }
};

You could also create a .prettierrc file with those same options in your project and it would respect those values.

Versions

Current Tags

Version History

Package Sidebar

Install

npm i @sincronia/prettier-plugin

Weekly Downloads

0

Version

0.4.2-alpha.3

License

GPL-3.0

Unpacked Size

38.2 kB

Total Files

4

Last publish

Collaborators

  • jarrod.deboy
  • brandonsmith-nuvolo
  • jakeye-nuvolo
  • nuvolo-admin