Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upFor testing I' try to autoformat minified version of jQuery but getting error #942
Comments
This comment has been minimized.
This comment has been minimized.
|
The fix flag is a feature inherited from ESlint, so if they have parsing errors on minified jquery then I imagine this would be an issue to bring upstream to that project. The --fix flag tends to be a less aggressive formatter, only focusing on linting error found given the ruleset that are enabled. See http://eslint.org/docs/rules/ for a list of rules that have a fix method implemented. The fix flag works great when writing code day to day IME and allows me the flexibility to format my code the way I like, within the rules of standard, while saving me time by fixing minor formatting issues. For a more opinionated/generalized format (that can survive a torture test like jquery minified) there is https://github.com/prettier/prettier which is also a quality project, but also ads a bit more to your tooling costs. There is a https://github.com/sheerun/prettier-standard but I've not had a chance to test it out. |
This comment has been minimized.
This comment has been minimized.
|
Closing for now, but we can reopen if there are issues identified with standard itself. |
jitendravyas commentedJul 1, 2017
https://code.jquery.com/jquery-3.2.1.min.js
Error