.eslintrc.js 1006 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. 'regex',
  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. 'jest/no-standalone-expect': [
  31. 'error',
  32. { additionalTestBlockFunctions: ['each.test'] },
  33. ],
  34. 'regex/invalid': ['error', [
  35. {
  36. regex: '\\?\\<\\!',
  37. message: 'Do not use any negative lookbehind',
  38. }, {
  39. regex: '\\?\\<\\=',
  40. message: 'Do not use any Positive lookbehind',
  41. },
  42. ]],
  43. },
  44. };