admin管理员组文章数量:1244389
I am trying to auto-fix issues in my js file using
eslint --fix -c "/path/to/.eslintrc" <file-name.js>
but with no success. Went through Eslint Rules. I have to fix "no-undef" & "no-unused-vars" using the mand, but it still not works.
I am trying to auto-fix issues in my js file using
eslint --fix -c "/path/to/.eslintrc" <file-name.js>
but with no success. Went through Eslint Rules. I have to fix "no-undef" & "no-unused-vars" using the mand, but it still not works.
Share Improve this question asked Dec 25, 2017 at 10:19 PrashoorPrashoor 4281 gold badge4 silver badges9 bronze badges1 Answer
Reset to default 12ESLint --fix
will fix everything that it can fix, but in many cases won't be able to automatically follow every rule.
Rules that can be taken care of with --fix
can be found in the rules documentation - they'll have a wrench icon next to the rule name.
Looks like the no-undef
and no-unused-vars
rules don't, so you'll have to manually b through the warnings and manually modify the code.
本文标签: javascriptEslint fix not resolving warnings according to eslintrc rulesStack Overflow
版权声明:本文标题:javascript - Eslint: --fix not resolving warnings according to .eslintrc rules - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1740217580a2243162.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论