esformatter-literal-notation
Version:
esformatter plugin that converts array and object constructors to literal notations
38 lines (26 loc) • 664 B
Markdown
[](https://github.com/millermedeiros/esformatter) 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](http://npmjs.org) do:
```bash
$ npm install esformatter-literal-notation
```
esformatter config file:
```json
{
"plugins": [
"esformatter-literal-notation"
]
}
```
MIT