eslint configuration adjustments

 phpstrom editor, for example: You can solve some configuration code format does not conform to the rules of the code in the format of error eslintrc.js

module.exports = {
    root: true,
    env: {
        node: true
    },
    'extends': [
        'plugin:vue/essential',
        '@vue/standard'
    ],
    rules: {
        'NO-Console': process.env.NODE_ENV === 'Production's'' error ':?' OFF ' ,
         ' NO-Debugger ': process.env.NODE_ENV ===' Production's' 'error':? 'OFF ' ,
         ' indent ':' oFF ' ,
         ' space-OPS-unary ':' oFF ',              // Close inspection extra spaces 
        ' NO-trailing-spaces ':' oFF ',           // closed space detecting unwanted 
        ' semi ':' oFF ',                         // close detecting a semicolon 
        ' space-before-function-PAREN ':' oFF ',    // closed space before the function 
        ' empty-NO-Multiple-Lines': 'oFF' ,
        'no-tabs': 'off',
    },
    parserOptions: {
        parser: 'babel-eslint'
    }
}

 

Guess you like

Origin www.cnblogs.com/rickyctbur/p/11824337.html