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

eslint.config.js

41 lines879 Bytes

1// @ts-check
2​
3import pluginJsdoc from 'eslint-plugin-jsdoc'
4import vitest from '@vitest/eslint-plugin'
5import rootConfig from './root.eslint.config.js'
6​
7export default [
8 ...rootConfig,
9 pluginJsdoc.configs['flat/recommended-typescript'],
10 {
11 rules: {
12 'cspell/spellchecker': [
13 'warn',
14 {
15 cspell: {
16 ignoreRegExpList: ['\\ɵ.+'],
17 },
18 },
19 ],
20 'jsdoc/require-hyphen-before-param-description': 1,
21 'jsdoc/sort-tags': 1,
22 'jsdoc/require-throws': 1,
23 'jsdoc/check-tag-names': ['warn'],
24 },
25 },
26 {
27 plugins: { vitest },
28 rules: {
29 'vitest/expect-expect': [
30 'error',
31 { assertFunctionNames: ['expect', 'expectSignals'] },
32 ],
33 },
34 },
35 {
36 files: ['**/__tests__/**'],
37 rules: {
38 '@typescript-eslint/no-unnecessary-condition': 'off',
39 },
40 },