.eslintrc.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * @Author: your name
  3. * @Date: 2021-01-25 11:32:04
  4. * @LastEditTime: 2021-01-25 13:35:42
  5. * @LastEditors: Please set LastEditors
  6. * @Description: In User Settings Edit
  7. * @FilePath: \rebatedine-mini\.eslintrc.js
  8. */
  9. // https://eslint.org/docs/user-guide/configuring
  10. module.exports = {
  11. root: true,
  12. parserOptions: {
  13. parser: 'babel-eslint'
  14. },
  15. env: {
  16. browser: true
  17. },
  18. extends: [
  19. // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
  20. // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
  21. 'plugin:vue/essential',
  22. // https://github.com/standard/standard/blob/master/docs/RULES-en.md
  23. 'standard'
  24. ],
  25. // required to lint *.vue files
  26. plugins: ['vue'],
  27. // add your custom rules here
  28. rules: {
  29. // allow async-await
  30. 'generator-star-spacing': 'off',
  31. // allow debugger during development
  32. 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
  33. 'no-tabs': 'off',
  34. indent: ['warn', 2, { SwitchCase: 1 }],
  35. 'no-async-promise-executor': 'off',
  36. 'no-undef': 'off'
  37. }
  38. }