美文网首页VUE
使用严格模式eslint时,报错Missing space be

使用严格模式eslint时,报错Missing space be

作者: 一只菜鸟正在脱毛 | 来源:发表于2020-06-17 14:09 被阅读0次

    一、解决方案

    在 .eslintrc.js 文件添加:

        "space-before-function-paren": 0
    
    image.png

    eslintrc.js 配置

    
    module.exports = {
      root: true,
      env: {
        node: true
      },
      extends: [
        'plugin:vue/essential',
        '@vue/standard'
      ],
      parserOptions: {
        parser: 'babel-eslint'
      },
      rules: {
        'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
        'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
        "no-undef": 0,
        'no-unused-vars': 'off',
        "space-before-function-paren": 0
      }
    }
    
    
    

    相关文章

      网友评论

        本文标题:使用严格模式eslint时,报错Missing space be

        本文链接:https://www.haomeiwen.com/subject/zfijxktx.html