.eslintrc.js 595 B

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