Skip to content

Instantly share code, notes, and snippets.

@cab
Created March 16, 2016 05:17
Show Gist options
  • Save cab/1c679607cbbfc25a50f8 to your computer and use it in GitHub Desktop.
Save cab/1c679607cbbfc25a50f8 to your computer and use it in GitHub Desktop.
$ cat test.js
import R from 'ramda';
R.map(
function(f)
{
return 2*f},
[0,1,2])
$ node bin/tidy.js test.js
fixing: ramda imports
fixing: anonymous function
fixing: arrow body style
fixing: newline at EOF
====================
import { map } from 'ramda';
map(f => 2 * f, [0, 1, 2]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment