美文网首页
webstorm 代码风格提示

webstorm 代码风格提示

作者: royluck | 来源:发表于2019-07-17 16:42 被阅读0次
image.png
package.json文件里配置如下内容:
  "devDependencies": {
    "standard": "^12.0.1",
  },
  // 下面这个不是必要的
  "standard": {
    "ignore": [
      "**/dist/",
      "/node_modules/",
      "/webapp/"
    ]
  }

然后删除webstorm本地的.idea文件,重新打开项目地址,则会提示 style-code-standard。
这时执行yarn install 安装即可。

其他:
这个好像需要配合npm包安装
webstorm-----eslint的配置和使用(2018版)

相关文章

网友评论

      本文标题:webstorm 代码风格提示

      本文链接:https://www.haomeiwen.com/subject/jqkclctx.html