admin管理员组文章数量:1390896
I have implemented a new set of ESLint rules to an existing Javasript-React project and need to fix around 7000 lint errors. Is there any solution available to auto fix or autocorrect Linting rules like below
✖ 18:47 A space is required before '}' object-curly-spacing
✖ 19:10 A space is required after '{' object-curly-spacing
✖ 21:14 Missing trailing ma ma-dangle
✖ 129:9 Expected newline before return statement newline-before-return
✖ 133:2 Missing semicolon semi
I have implemented a new set of ESLint rules to an existing Javasript-React project and need to fix around 7000 lint errors. Is there any solution available to auto fix or autocorrect Linting rules like below
✖ 18:47 A space is required before '}' object-curly-spacing
✖ 19:10 A space is required after '{' object-curly-spacing
✖ 21:14 Missing trailing ma ma-dangle
✖ 129:9 Expected newline before return statement newline-before-return
✖ 133:2 Missing semicolon semi
Share
Improve this question
edited Nov 9, 2016 at 1:51
user2864740
62.1k15 gold badges158 silver badges228 bronze badges
asked Nov 9, 2016 at 1:43
mshameermshameer
4,1512 gold badges17 silver badges15 bronze badges
1 Answer
Reset to default 6If you run eslint
with the --fix
flag it will try to fix any linting changes that it can, and let you know which ones it cannot. See the documentation here: http://eslint/blog/2015/09/eslint-v1.5.0-released
本文标签: javascriptAny solution to autofix or autocorrect ESLint rulesStack Overflow
版权声明:本文标题:javascript - Any solution to autofix or autocorrect ESLint rules? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744595656a2614760.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论