wolichuang / dailyInterview

面试、工作中遇到的issue
0 stars 0 forks source link

eslint Missing space before function parentheses #24

Open wolichuang opened 3 years ago

wolichuang commented 3 years ago

.eslint.js

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