webstorm格式化代码与eslint冲突的问题
升级webstorm版本后,格式化代码后,代码风格可能与之前会有区别,导致看着别扭,eslint还飘红。解决方式是启用自定义的code style设置。截图如下:如果设置里没有这个选项,则可以在项目根目录下添加.editorconfig文件,示例内容如下:root = true[*]charset = utf-8end_of_line = lfindent_size = 2indent_style = spaceinsert_final_newline = truetrim_trai
原创
2020-06-29 10:40:11 ·
4457 阅读 ·
0 评论