禁止有名字的函数空格即可

.eslintrc.js
module.exports = {
rules: {

'space-before-function-paren': ['error', {
  anonymous: 'always',
  named: 'never',
  asyncArrow: 'always'
}]

}
}