test.ts 575 B

1234567891011121314151617181920212223
  1. import type { OxlintConfig } from 'oxlint';
  2. const test: OxlintConfig = {
  3. rules: {
  4. 'jest/no-conditional-expect': 'off',
  5. 'jest/require-to-throw-message': 'off',
  6. 'vitest/consistent-test-it': [
  7. 'error',
  8. {
  9. fn: 'it',
  10. withinDescribe: 'it',
  11. },
  12. ],
  13. 'vitest/hoisted-apis-on-top': 'off',
  14. 'vitest/no-focused-tests': 'error',
  15. 'vitest/no-identical-title': 'error',
  16. 'vitest/no-import-node-test': 'error',
  17. 'vitest/prefer-hooks-in-order': 'error',
  18. 'vitest/prefer-lowercase-title': 'error',
  19. },
  20. };
  21. export { test };