You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if there were a --fix flag, similar to tools like eslint, which handles fixable errors in a project's package.json. From what I can see, the rules that could be fixable include: prefer-property-order and the prefer-alphabetical-* rules.
prefer-property-order is particularly annoying as it typically involves running pjl-cli over and over again until the desired order is met.
Could this be achieved simply by adding a new fix property to each rule that is fixable and invoke it if the --fix flag is passed in?
The text was updated successfully, but these errors were encountered:
Hey @piranna - you are correct. v4 added the fix flag to the cli interface, but nothing has been implemented behind it. v3 and v4 went through some pretty major structural changes and this feature unfortunately got pushed to the side. I’ve been pretty busy recently. I’ll try to get back to focusing in the next couple of weeks.
It would be nice if there were a
--fix
flag, similar to tools likeeslint
, which handles fixable errors in a project'spackage.json
. From what I can see, the rules that could be fixable include:prefer-property-order
and theprefer-alphabetical-*
rules.prefer-property-order
is particularly annoying as it typically involves runningpjl-cli
over and over again until the desired order is met.Could this be achieved simply by adding a new
fix
property to each rule that is fixable and invoke it if the--fix
flag is passed in?The text was updated successfully, but these errors were encountered: