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