.eslintrc.js 586 B

1234567891011121314151617181920212223242526272829
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true
  5. },
  6. extends: ['plugin:vue/essential', '@vue/standard'],
  7. rules: {
  8. 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
  9. 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
  10. 'space-before-function-paren': 0
  11. },
  12. parserOptions: {
  13. parser: 'babel-eslint'
  14. },
  15. globals: {
  16. 'pdfjs': true
  17. },
  18. overrides: [
  19. {
  20. files: [
  21. '**/__tests__/*.{j,t}s?(x)',
  22. '**/tests/unit/**/*.spec.{j,t}s?(x)'
  23. ],
  24. env: {
  25. jest: true
  26. }
  27. }
  28. ]
  29. }