.eslintrc.js 659 B

12345678910111213141516171819202122232425262728293031
  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': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  13. 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  14. 'vue/no-v-html': 'off',
  15. },
  16. parserOptions: {
  17. parser: 'babel-eslint',
  18. },
  19. overrides: [
  20. {
  21. files: [
  22. '**/__tests__/*.{j,t}s?(x)',
  23. '**/tests/unit/**/*.spec.{j,t}s?(x)',
  24. ],
  25. env: {
  26. jest: true,
  27. },
  28. },
  29. ],
  30. }