.eslintrc.js 577 B

123456789101112131415161718192021222324252627282930
  1. module.exports = {
  2. parser: '@typescript-eslint/parser',
  3. extends: [
  4. 'weseek',
  5. 'weseek/typescript',
  6. 'plugin:jest/recommended',
  7. ],
  8. env: {
  9. 'jest/globals': true,
  10. },
  11. globals: {
  12. },
  13. plugins: [
  14. 'jest',
  15. ],
  16. rules: {
  17. 'import/prefer-default-export': 'off',
  18. '@typescript-eslint/no-explicit-any': 'off',
  19. indent: [
  20. 'error',
  21. 2,
  22. {
  23. SwitchCase: 1,
  24. ArrayExpression: 'first',
  25. FunctionDeclaration: { body: 1, parameters: 2 },
  26. FunctionExpression: { body: 1, parameters: 2 },
  27. },
  28. ],
  29. },
  30. };