如何在 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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章