新版vscode中原來的eslint失效了


最近兩天發現eslint用不了了

之前leader要求是安裝eslint+prettier

vscode setting文件里,好像prettier怎么都整合不了eslint,

eslint有一個函數名后面加空格的規則,怎么也不能修復

      "space-before-function-paren": [
        "error",
        "always"
      ],

短時間內解決,是把prettier插件禁用

都2020了,貌似一切工程都可以prettier格式化似的……

 

其他比較特殊的配置有

  "eslint.format.enable": true
  // "eslint.autoFixOnSave": true,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM