.eslintrc.js 559 B

12345678910111213141516171819202122
  1. module.exports = {
  2. root: true,
  3. parser: 'babel-eslint',
  4. parserOptions: {
  5. sourceType: 'module'
  6. },
  7. // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
  8. extends: 'standard',
  9. // required to lint *.vue files
  10. plugins: [
  11. 'html'
  12. ],
  13. // add your custom rules here
  14. 'rules': {
  15. // allow paren-less arrow functions
  16. 'arrow-parens': 0,
  17. // allow async-await
  18. 'generator-star-spacing': 0,
  19. // allow debugger during development
  20. 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
  21. }
  22. }