.eslintrc.js 770 Bytes
module.exports = {
  root: true,
  env: {
    node: true,
    browser: true
  },
  globals: {
    $: true,
    axios: true,
    moment: true,
    _: true
  },
  extends: '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-console': ["error", { allow: ["warn", "error"] }]
  },
  parser: 'babel-eslint'
};