syntux
syntux copied to clipboard
Code with style
After some discussion on twitter with a couple people @jdalton told me about the existence of this project and for what I could see on the TODO list there is...
With the default settings, syntax coverts ``` js if(a){ }else if(b){ }else{ } ``` to ``` js if(a) { }else if(b) { }else { } ``` whereas it should be...
@felixge mentioned respecting contents of .gitignore, a potential .syntuxignore and also ignoring folders like node_modules @klipstein recommended disabling the default behaviour of recursively converting the current dir _Edit:_ Herped the...
Thoughts?
I saw that diff_helper is getting rid of the context around the hunk but it also appears to not display multi-line diffs correctly, i.e., it only displays the first line...
For example try syntux w/ `--addSemicolons` on bin/syntux.js: Before: ``` #!/usr/bin/env node ``` After: ``` #!/user/bin/env node; ``` I guess this could be checked for in the `addSemicolons` plugin.
This might not be an issue, but I just had the following happen to me: ``` syntux --addSemicolons --quotes '"' --trimWhitespace src/ ``` `src/` was parsed as `trimWhitespace`’s value so...