Open Kristinita opened 5 years ago
Think you need to set the block_comment
option https://github.com/jedmao/eclint#block_comment
@nschonni, @gucong3000, Status: partially fixed
+ — eclint check doesn't show errors
- — eclint fix doesn't remove leading spaces in comments
Is it possible remove leading spaces? They are not needed.
Thanks.
My comment was about comment blocks (😉 ) that were being flagged in your example. There are 3 editorconfig settings that deal specifically with comment blocks, that are separate from the indent
settings.
1. Summary
It would be nice, if
eclint fix
will remove leading spaces for tabs users.2. Argumentation
Some tools automatically generate files with leading spaces.
eclint fix
doesn't fix it andeclint check
makes my builds failed.3. MCVE
.editorconfig
— I prefer tabs:KiraECLint.styl
— see Comment-Snippets issue for details:KiraECLint.js
— beginning of real file, that generate by grunt-modernizr:Leading spaces in
KiraECLint.styl
andKiraECLint.js
.4. Steps to reproduce
5. Expected behavior
Remove leading spaces after
fix
, successfulcheck
.6. Actual behavior
Thanks.