-
``` sh
$ git clone wymeditor/wymeditor
$ cd wymeditor
$ standard-format -w
/home/shahar/.nvm/versions/node/v0.12.0/lib/node_modules/standard-format/node_modules/esformatter/node_modules/rocambole/node…
-
This will transform this:
``` javascript
try {
something();
} catch (ex) {
err && err( ex ); // this will have 2 extra spaces
} finally {
finallyFn && finallyFn();
}
};
```
in to …
-
the current tests fails after running `npm update rocambole esprima`.. same tests worked with `esprima@2.0`
**expected:**
``` js
var o = {
a: 0,
get b() {},
set c(x) {}
};
```
**actual:**
``…
-
When the node being replaced is not the first in the program, it gets updated correctly.
```
> rocambole.moonwalk('a=0;$log.log()', function(node) { if( node.type === 'CallExpression' && node.callee.…
-
I recently cleaned my node_modules directory and re-ran npm install and started getting an out of memory error that I have traced back to this plugin (and its dependencies).
Take a look at the follow…
-
it will be extremely useful for plugins to be able to increase/decrease the indent level in between tokens, so I think we should maintain these methods as a separate module to encourage code reuse.
w…
-
I'm currently working on the [esformatter-onevar](https://github.com/evanvosberg/esformatter-onevar) plugin (it's still under development).
My plugin uses the `transformBefore` hook and I would expec…
-
right now if it throws an error while trying to parse a file we have no idea where the error came from:
```
$ esformatter -i lib/**/*.js
/Users/millermedeiros/Projects/opensource/rocambole/node_modul…
-
If you really want to "be the best JavaScript code formatter" (and I want you to become it because I need this tool !!), `esformatter` should definitely support renaming variable in some form. To unde…
pomeh updated
9 years ago
-
the current implementation is naive, if you modify the AST by adding/removing new nodes or reordering the nodes you might get the wrong output since `rocambole.moonwalk` won't have the correct `node.l…