.eslintrc.js 759 B

1234567891011121314151617181920212223242526272829303132
  1. // http://eslint.org/docs/user-guide/configuring
  2. module.exports = {
  3. root: true,
  4. parser: 'babel-eslint',
  5. parserOptions: {
  6. sourceType: 'module'
  7. },
  8. env: {
  9. browser: true,
  10. },
  11. // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
  12. extends: 'standard',
  13. // required to lint *.vue files
  14. plugins: [
  15. 'html'
  16. ],
  17. // add your custom rules here
  18. 'rules': {
  19. 'quotes':[1,'double'],
  20. 'no-tabs':0,
  21. 'indent':[1,'tab'],
  22. 'space-before-function-paren':0,
  23. 'disallowTabs':0,
  24. // allow paren-less arrow functions
  25. 'arrow-parens': 0,
  26. // allow async-await
  27. 'generator-star-spacing': 0,
  28. // allow debugger during development
  29. 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
  30. }
  31. }