webstorm 代码格式化设置与eslint standard一致
新弄了个vue项目,使用的eslint是standard规范。
新建项目,用webstorm打开项目,顺利开搞,结果一到vue组件里,就报红色叹号错误了。
这里就需要配置一下webstorm里的code style
打开配置路径:
file--->settings,打开webstorm配置窗口
配置js格式化规范
配置html/vue组件
在do not indent children of里加入script标签