.eslintrc.js 548 B

1234567891011121314151617181920212223242526
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true,
  5. },
  6. extends: ['plugin:vue/recommended', '@vue/prettier'],
  7. rules: {
  8. 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  9. 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  10. 'vue/no-v-html': 'off',
  11. },
  12. parserOptions: {
  13. parser: 'babel-eslint',
  14. },
  15. overrides: [
  16. {
  17. files: [
  18. '**/__tests__/*.{j,t}s?(x)',
  19. '**/tests/unit/**/*.spec.{j,t}s?(x)',
  20. ],
  21. env: {
  22. jest: true,
  23. },
  24. },
  25. ],
  26. }