Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

eslint.config.js

21 lines445 Bytes

1// @ts-check
2​
3import vitest from '@vitest/eslint-plugin'
4import rootConfig from './root.eslint.config.js'
5​
6export default [
7 ...rootConfig,
8 {
9 plugins: { vitest },
10 rules: {
11 'vitest/expect-expect': ['error', { assertFunctionNames: ['expect'] }],
12 },
13 },
14 {
15 files: ['**/__tests__/**'],
16 rules: {
17 '@typescript-eslint/no-unnecessary-condition': 'off',
18 '@typescript-eslint/require-await': 'off',
19 },
20 },