esformatter plugin that converts array and object constructors to literal notations
npm install esformatter-literal-notationesformatter plugin that converts array and object constructors to literal notations
``js
var foo = new Array();
// converted to:
var foo = [];
var bar = new Object();
// converted to:
var bar = {};
`
With npm do:
`bash`
$ npm install esformatter-literal-notation
esformatter config file:
`json``
{
"plugins": [
"esformatter-literal-notation"
]
}
MIT