.eslintrc.js 934 B

123456789101112131415161718192021222324252627282930313233
  1. // https://eslint.org/docs/user-guide/configuring
  2. module.exports = {
  3. root: true,
  4. parserOptions: {
  5. parser: 'babel-eslint'
  6. },
  7. env: {
  8. browser: true,
  9. },
  10. extends: [
  11. // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
  12. // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
  13. 'plugin:vue/essential',
  14. // https://github.com/standard/standard/blob/master/docs/RULES-en.md
  15. // "eslint:recommended",
  16. 'standard'
  17. ],
  18. // required to lint *.vue files
  19. plugins: [
  20. 'vue'
  21. ],
  22. // add your custom rules here
  23. rules: {
  24. // allow async-await
  25. 'generator-star-spacing': 'off',
  26. // allow debugger during development
  27. 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
  28. // 'eqeqeq' : 'smart'
  29. 'eqeqeq' : 'off',
  30. 'vue/no-parsing-error': [2, { "x-invalid-end-tag": false }]
  31. }
  32. }