.eslintrc.js 465 Bytes
Newer Older
张罗鹏's avatar
张罗鹏 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
module.exports = {
  root: true,
  env: {
    node: true
  },
  extends: ['plugin:vue/essential', '@vue/standard'],
  rules: {
    'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
    'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
    semi: [0, 'always'],
    'space-before-function-paren': [0, 'never'],
    'no-trailing-spaces': 'off',
    'no-undef': 'off'
  },
  parserOptions: {
    parser: 'babel-eslint'
  }
};