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

eslint.config.js

24 lines487 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': [
12 'error',
13 { assertFunctionNames: ['expect', 'expectSignals'] },
14 ],
15 },
16 },
17 {
18 files: ['**/__tests__/**'],
19 rules: {
20 '@typescript-eslint/no-unnecessary-condition': 'off',
21 '@typescript-eslint/require-await': 'off',
22 },
23 },