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 up--fix doesn't fix all problems #587
Comments
feross
added a commit
to standard/standard-engine
that referenced
this issue
Aug 12, 2016
This comment has been minimized.
This comment has been minimized.
|
@davidjb Good suggestion! I just sent a PR to implement this behavior: standard/standard-engine#122 |
dcousens
added
the
bug
label
Aug 13, 2016
feross
closed this
in
standard/standard-engine#122
Aug 13, 2016
This comment has been minimized.
This comment has been minimized.
|
@feross thanks for that, that's a great help. The other bit I've thought about is if someone runs Standard and sees errors, they're told to run
because of the suggestion given, I'm now expecting all the listed issues would be fixed with What about a change in wording (eg Fwiw, at the moment I'm not sure what would or wouldn't be fixed; I can guess a bit from experience and there's http://standardjs.com/index.html#is-there-an-automatic-formatter but that's for a related package. I might have missed something, though so let me know. |
This comment has been minimized.
This comment has been minimized.
|
Good suggestion on the wording, but I don't want to maintain a list of which rules are fixable. It's changing all the time and constantly improving thanks to the ESLint project (which
This readme section will be changed once standard v8 is released. You're running a beta version right now. |
This comment has been minimized.
This comment has been minimized.
|
Okay thanks. Does eslint have a list that you could link to? Even if it's
|
This comment has been minimized.
This comment has been minimized.
|
The fixable rules are on this page, with a wrench icon next their name: http://eslint.org/docs/rules/ Note: Standard doesn't enable every ESLint rule. |
This comment has been minimized.
This comment has been minimized.
|
Awesome thanks, that's really helpful for using Standard. On Sat, 13 Aug 2016 at 17:12 Feross Aboukhadijeh notifications@github.com
|
davidjb commentedAug 12, 2016
The message from #576 suggests that using
--fixwill automatically fix problems but not everything gets fixed:Running
--fixsolves the spacing issue, but continues to suggest running--fixto solve the unused import:I thought I recall reading somewhere here (another issue?) that not all issues get fixed. So, if fixing unused imports is out-of-scope, the message should avoid suggesting to run
--fix-- that was confusing. Alternatively, if the unused import should be removed from my file, then that's not currently happening. Whichever way, the option to remove unused definitions would help even further.Either way, thanks - the
--fixfeature is awesome.