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
{{ message }}
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.
The Fix on Save feature is really useful, but with some rules it can sometime get in the way.
For example with the capitalized-comments.
When developing is sometimes to comment out a few lines of code to test something and revert the commenting to re-eanable the code.
With the capitalized-comments rule, if Fix on Save is enable, commenting a few line of code will capitalize the first letter. When un-commenting the capital letter will stay and has to be manually fixed.
For example, this following code might create a problem and I comment it to test:
// if (condition) {// createPossibleProblem();// }
On save if becomes If:
// If (condition) {// createPossibleProblem();// }
The Fix on Save feature is really useful, but with some rules it can sometime get in the way.
For example with the capitalized-comments.
When developing is sometimes to comment out a few lines of code to test something and revert the commenting to re-eanable the code.
With the
capitalized-comments
rule, if Fix on Save is enable, commenting a few line of code will capitalize the first letter. When un-commenting the capital letter will stay and has to be manually fixed.For example, this following code might create a problem and I comment it to test:
On save
if
becomesIf
:When I un-comment the code
If
stay capitalized.See the same feature on linter-eslint : AtomLinter/linter-eslint#795
The text was updated successfully, but these errors were encountered: