.eslintrc.js 729 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * @Descripttion: eslint配置
  3. * @version: 1.0.0
  4. * @Author: dream
  5. * @Date: 2021-03-26 09:48:52
  6. * @LastEditors: dream
  7. * @LastEditTime: 2021-03-28 12:40:35
  8. */
  9. module.exports = {
  10. env: {
  11. browser: true,
  12. es2021: true
  13. },
  14. extends: [
  15. 'plugin:vue/essential',
  16. 'standard'
  17. ],
  18. parserOptions: {
  19. ecmaVersion: 9,
  20. sourceType: 'module'
  21. },
  22. plugins: [
  23. 'vue'
  24. ],
  25. rules: {
  26. // allow async-await
  27. 'generator-star-spacing': 'off',
  28. // allow debugger during development
  29. 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
  30. 'no-tabs': 'off',
  31. indent: ['warn', 2],
  32. 'no-async-promise-executor': 'off',
  33. 'no-undef': 'off',
  34. 'vue/valid-v-bind': 'off'
  35. }
  36. }