07 2019 档案
npm run eslint 报错 (87 errors, 0 warnings potentially fixable with the --fix option.)
摘要:93 problems (93 errors, 0 warnings)87 errors, 0 warnings potentially fixable with the --fix option. 报这个错是因为package.json中配置项少了 --fixed 更改为: 继续运行,这里还有一些 阅读全文
posted @ 2019-07-05 17:50 一年八个月 阅读(32145) 评论(2) 推荐(1)
vue 项目 webstrom IDE格式化代码规则遵循eslint设置
摘要:首先vue-cli生成了一个项目,开启了eslint的检测, 但是根据webstorm的快捷格式化代码 ctrl+alt+L会造成eslint报错。 解决办法一: 编辑器打开文件 首先,在编辑器里面要启用eslint 插件 在 .eslintrc.js 上右键,菜单底部有一个 "Apply ESLi 阅读全文
posted @ 2019-07-02 17:58 一年八个月 阅读(1045) 评论(0) 推荐(0)
VUE:Method definition shorthands are not supported by current JavaScript version解决办法(该方法定义的缺陷是不支持当前的JavaScript版本)
摘要:问题: VUE:Method definition shorthands are not supported by current JavaScript version解决办法。 表示:该方法定义的缺陷是不支持当前的JavaScript版本。 代码是没有问题的,但是出现红色波浪线,很不爽啊。 解决办 阅读全文
posted @ 2019-07-02 17:48 一年八个月 阅读(3060) 评论(0) 推荐(0)