.eslintrc.js 936 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true
  5. },
  6. 'extends': [
  7. 'plugin:vue/essential',
  8. '@vue/standard'
  9. ],
  10. parserOptions: {
  11. parser: 'babel-eslint'
  12. },
  13. rules: {
  14. 'no-console': 'off',
  15. 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
  16. 'semi': ['off', 'always'],
  17. 'prefer-promise-reject-errors': ['error', { 'allowEmptyReject': true }],
  18. 'no-trailing-spaces': ['error', { 'skipBlankLines': true }],
  19. 'prefer-const': ['off'],
  20. 'quote-props': ['off'],
  21. 'object-curly-spacing': ['off'],
  22. 'dot-notation': ['off'],
  23. 'lines-between-class-members': ['off'],
  24. // 'no-undef': ['off', 'always'],
  25. // 'no-unused-vars': ['off', 'always'],
  26. 'no-new-func': ['off', 'always']
  27. },
  28. overrides: [
  29. {
  30. files: [
  31. '**/__tests__/*.{j,t}s?(x)',
  32. '**/tests/unit/**/*.spec.{j,t}s?(x)'
  33. ],
  34. env: {
  35. jest: true
  36. }
  37. }
  38. ]
  39. }