vue中报错ESLint: Expected indentation of 2 spaces but found 4.(indent)



  • .eslintrc.jsrules下添加如下代码

    indent: "off"
    

    示例

      rules: {
        'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
        'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
          indent: "off"
      }
    

Log in to reply
 

更多推荐主题