.eslintrc.js 912 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * @Author: wujian
  3. * @Date: 2022-05-31 09:27:01
  4. * @LastEditors: xing.heng
  5. * @LastEditTime: 2023-05-17 22:48:17
  6. */
  7. module.exports = {
  8. root: true,
  9. parserOptions: {
  10. parser: '@babel/eslint-parser',
  11. sourceType: 'module',
  12. ecmaVersion: 2015
  13. },
  14. plugins: ['vue'],
  15. env: {
  16. browser: true,
  17. node: true,
  18. es6: true
  19. },
  20. rules: {
  21. // 忽略console警告
  22. 'no-console': 'off',
  23. // 忽略v-html警告
  24. 'vue/no-v-html': 'off',
  25. 'vue/multi-word-component-names': 'off',
  26. 'vue/no-mutating-props': 'off',
  27. 'no-prototype-builtins': 'off',
  28. 'array-callback-return': 'off',
  29. 'prefer-regex-literals': 'off',
  30. 'multiline-ternary': 'off',
  31. 'vue/order-in-components': 'off',
  32. 'no-eval': 'off',
  33. 'vue/no-template-shadow': 'off'
  34. },
  35. extends: [
  36. 'plugin:vue/recommended',
  37. 'eslint:recommended',
  38. '@vue/standard' // 使eslint继承standard标准
  39. ]
  40. }