如何在 vue-cli 中禁用 ESLint? - How to disable ESLint in vue-cli?

问题:

How do I go about disabling ESlint in project generated with vue-cli ?如何在使用vue-cli生成的项目中禁用ESlint

preLoaders: [
  {
    test: /\.vue$/,
    loader: 'eslint',
    include: projectRoot,
    exclude: /node_modules/
  },
  {
    test: /\.js$/,
    loader: 'eslint',
    include: projectRoot,
    exclude: /node_modules/
  }
]

If I remove the loader: 'eslint' line it won't compile, same with setting it to an empty string.如果我删除loader: 'eslint'行,它将无法编译,与将其设置为空字符串相同。 I know I can opt out of ESLint during the initialization phase, but how can I disable it after my project has been created?我知道我可以在初始化阶段选择退出ESLint ,但是在我的项目创建后如何禁用它?


解决方案:

参考: https://stackoom.com/en/question/2ccU1
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章