.eslintrc.js 629 B

1234567891011121314151617181920212223
  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. // We could also use the https://github.com/vuejs/eslint-plugin-vue
  10. // required to lint *.vue files
  11. plugins: [
  12. 'html'
  13. ],
  14. // add your custom rules here
  15. 'rules': {
  16. // allow paren-less arrow functions
  17. 'arrow-parens': 0,
  18. // allow async-await
  19. 'generator-star-spacing': 0,
  20. // allow debugger during development
  21. 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
  22. }
  23. }