.eslintrc.js 758 B

12345678910111213141516171819202122232425262728293031323334
  1. module.exports = {
  2. root: true, // https://eslint.org/docs/user-guide/configuring/configuration-files#cascading-and-hierarchy
  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. 'jest/no-standalone-expect': [
  30. 'error',
  31. { additionalTestBlockFunctions: ['each.test'] },
  32. ],
  33. },
  34. };