bcomnes / sublime-standard-format

:sparkles: Runs standard --fix against the javascript in your ST3 window on save or manually.
https://packagecontrol.io/packages/StandardFormat
MIT License
60 stars 21 forks source link

Add JavaScript (DOM) syntax for compatibility with Java​Script Ultimate #27

Closed Sheraff closed 9 years ago

Sheraff commented 9 years ago

I like Feross' idea of the standard format. And I like JoshuaWise's reimplementation of the Javascript syntax in sublime text. But sometimes I get an alert telling me it doesn't know the Javascript (DOM) syntax.

screen shot 2015-06-06 at 03 07 12

bcomnes commented 9 years ago

CodeFormatter sounds like another plugin complaining. https://github.com/akalongman/sublimetext-codeformatter perhaps?

I would be carful running multiple transforms from different plugins, as they may interact weird.

Standard Format relies on the file extension primarily. The only time it references the language syntax is when the file is not saved and has no file extension yet: https://github.com/bcomnes/sublime-standard-format/blob/master/standard-format.py#L64-L74

Please let me know if you are still running into this issue and we can reopen.