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 upstandard --fix shows errors, but doesn't fix them [macOS High Sierra] #1044
Comments
This comment has been minimized.
This comment has been minimized.
|
ESLint says that:
Potentially the "some" is the problem here. I would recommend opening an issue with them... |
This comment has been minimized.
This comment has been minimized.
joelwallis
commented
Mar 25, 2018
|
Same issue here. So this |
This comment has been minimized.
This comment has been minimized.
tunnckoCore
commented
Mar 26, 2018
•
|
@joelwallis yes. That's good reason to be forced one of the options, here in Standard. |
This comment has been minimized.
This comment has been minimized.
joelwallis
commented
Mar 26, 2018
|
I spend yesterday looking for a possible solution for it but no luck. I can't even describe reproducible steps because it seem to work in some scenarios but not in others. I could format simple snippets (like But if it's being broadcasted to eslint it's probably a bug in it then. I'll keep looking. |
This comment has been minimized.
This comment has been minimized.
|
Every new release of ESLint (and Note that not every rule will be automatically fixable -- some will always require a human decision to fix. |
milankragujevic commentedJan 15, 2018
Hi,
I tried running
standard --fixon my Mac inside the project, and it correctly identifies the mistakes I have made in the file, meaning mixing spaces and tabs, etc... However, it doesn't actually fix anything, and on each re-run it just outputs the same problems with my code again, and does that every time.Here is sample output:
Please fix ASAP. Thanks.
standard --versionis "10.0.3".Here is the file in question:
MK_paratii.utils.js.zip
And here is hex:

I have accidentally discovered that the issue is that standardjs cannot decide whether there should be tabs or spaces and doesn't do anything when it sees tabs and spaces in sequence mixed in a single line.