.eslintrc.js 898 Bytes
module.exports = {
  root: true,
  env: {
    node: true,
    browser: true,
    commonjs: true,
    es6: true
  },
  globals: {
    $: true,
    axios: true,
    moment: true,
    _: true
  },
  'extends': [
    'plugin:vue/essential',
    '@vue/standard'
  ],
  rules: {
    // 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,
    // allow no-new
    'no-new': 0,
    // allow semi
    'semi': 0,
    // allow indent
    'indent': ['error', 2],
    // 'indent': 0,
    // allow no-tabs
    'no-tabs': 0,
    // allow camelcase
    'camelcase': 0,
    'eqeqeq': 0,
    'no-undef': 0,
    'no-self-assign': 0,
    'no-console': ['error', { allow: ['warn', 'error'] }]
  },
  parserOptions: {
    parser: 'babel-eslint'
  }
};