.eslintrc.js 709 B

12345678910111213141516171819202122232425262728293031323334
  1. const prod = process.env.NODE_ENV === 'production'
  2. module.exports = {
  3. root: true,
  4. env: {
  5. node: true
  6. },
  7. extends: [
  8. 'plugin:vue/strongly-recommended',
  9. // 'plugin:vue-a11y/base', FIXME
  10. 'eslint:recommended',
  11. '@vue/standard'
  12. ],
  13. plugins: [
  14. 'vue-a11y'
  15. ],
  16. parserOptions: {
  17. parser: 'babel-eslint'
  18. },
  19. rules: {
  20. 'no-console': prod ? 'warn' : 'off',
  21. 'no-debugger': prod ? 'warn' : 'off',
  22. 'vue/max-attributes-per-line': [
  23. 'error',
  24. {
  25. singleline: 3,
  26. multiline: { max: 3, allowFirstLine: true }
  27. }
  28. ],
  29. 'no-irregular-whitespace': 'off',
  30. 'no-unused-vars': 'warn',
  31. 'no-multiple-empty-lines': ['error', { max: 2 }]
  32. }
  33. }