- Expected indentation of 2 spaces but found 4
打开.eslintrc.js添加
'rules': {
'indent': ['off', 2],
// allow paren-less arrow functions
'arrow-parens': 0,
// allow async-await
'generator-star-spacing': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
}
- Newline required at end of file but not found.
'eol-last': 0,
- Missing space before function parentheses.
"space-before-function-paren": 0