Skip to content

Latest commit

 

History

History

edam-prettier-loader

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

edam-prettier-loader

NPM version NPM Downloads

Edam loader for prettier text.

Why requires it?

  • Input
{{#is name '123'}}
var name = "abc";
{{/is}
  • Output
var name = "abc";

The output text contains two empty lines between var name = "abc"; So we could use edam-prettier-loader to format the empty line.

Usage

Options

filePath? string

prettier config file path

NOTE: The reset options inherit prettier's options

Configuring

// template config file
module.exports = {
  // ...
  mappers: [{
    test: '*.{jsx,js}',
    loader: [
      'LoDash', // preset loader
      [
        require('edam-prettier-loader'),
        {
          // options
        }
      ]
    ]
  }]
}