vueJS 解决VSCode 中 报错"You may use special comments to disable some warnings. Use // eslint-disable-next-line to ignore the next line. Use /* eslint-disable */ to ignore all warnings in a file."

vueJS 解决VSCode 中 报错"You may use special comments to disable some warnings. Use // eslint-disable-next-line to ignore the next line. Use /* eslint-disable */ to ignore all warnings in a file."

 

 在bulid > webpack.base.conf.js 中,注释或删除掉: module -> rules 关于eslint的部分

复制代码
 module: {
    rules: [
      // ...(config.dev.useEslint ? [createLintingRule()] : []),   //注释或删除
      {
        test: /\.vue$/,
        loader: 'vue-loader',
        options: vueLoaderConfig
      },
  ]
}
复制代码

然后 npm run dev 就能启动了

posted @ 2020-05-15 22:05  凌137  阅读(1267)  评论(0编辑  收藏  举报