Lucas的个人博客

vue——解决“You may use special comments to disable some warnings. Use // eslint-disable-next-line to...

2019年3月18日 1 min read

在build/webpack.base.conf.js文件中,注释或者删除掉:module->rules中有关eslint的规则

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

然后 nmp run dev 就能正常运行了

© 2026 Lucas Space — Built with Nuxt 3 & Tailwind CSS

小熊的ai智能体开发 · 粤ICP备2026113323号