.eslintrc.js 808 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**
  2. * @author chuzhixin 1204505056@qq.com (不想保留author可删除)
  3. * @description .eslintrc.js
  4. */
  5. module.exports = {
  6. root: true,
  7. env: {
  8. node: true,
  9. },
  10. extends: ['plugin:vue/recommended', '@vue/prettier'],
  11. rules: {
  12. 'no-console': 'off',
  13. 'no-debugger': 'off',
  14. 'vue/no-v-html': 'off',
  15. 'no-empty' : 'off',
  16. 'no-ex-assign': 'off',
  17. 'no-extra-boolean-cast': 'off',
  18. 'no-extra-parens': 'off',
  19. 'no-extra-semi' : 'off',
  20. 'no-func-assign' : 'off',
  21. 'no-inner-declarations' : 'off',
  22. 'no-irregular-whitespace':'off'
  23. },
  24. parserOptions: {
  25. parser: 'babel-eslint',
  26. },
  27. overrides: [
  28. {
  29. files: [
  30. '**/__tests__/*.{j,t}s?(x)',
  31. '**/tests/unit/**/*.spec.{j,t}s?(x)',
  32. ],
  33. env: {
  34. jest: true,
  35. },
  36. },
  37. ],
  38. }