.eslintrc.js 704 B

1234567891011121314151617181920212223242526272829303132
  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. 'vue/multi-word-component-names': 'off',
  16. },
  17. parserOptions: {
  18. parser: 'babel-eslint',
  19. },
  20. overrides: [
  21. {
  22. files: [
  23. '**/__tests__/*.{j,t}s?(x)',
  24. '**/tests/unit/**/*.spec.{j,t}s?(x)',
  25. ],
  26. env: {
  27. jest: true,
  28. },
  29. },
  30. ],
  31. }