最近两天发现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
  },

 

相关文章:

  • 2021-06-11
  • 2021-11-13
  • 2022-12-23
  • 2021-09-10
  • 2022-01-31
  • 2022-02-23
  • 2022-02-21
猜你喜欢
  • 2022-12-23
  • 2022-01-04
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2021-09-30
相关资源
相似解决方案