Open History to see the last commit
1// @ts-check
2β
3// @ts-ignore Needed due to moduleResolution Node vs Bundler
4import { tanstackConfig } from '@tanstack/config/eslint'
5import pluginCspell from '@cspell/eslint-plugin'
6import vitest from '@vitest/eslint-plugin'
7β
8export default [
9 ...tanstackConfig,
10 {
11 name: 'tanstack/temp',
12 plugins: {
13 cspell: pluginCspell,
14 },
15 rules: {
16 'cspell/spellchecker': [
17 'warn',
18 {
19 cspell: {
20 words: [
21 'codemod', // We support our codemod
22 'extralight', // Our public interface
23 'jscodeshift',
24 'Promisable', // Our public interface
25 'retryer', // Our public interface
26 'solidjs', // Our target framework
27 'tabular-nums', // https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-numeric
28 'tanstack', // Our package scope
29 'todos', // Too general word to be caught as error
30 'TSES', // @typescript-eslint package's interface
31 'tsqd', // Our public interface (TanStack Query Devtools shorthand)
32 'tsup', // We use tsup as builder
33 'typecheck', // Field of vite.config.ts
34 'vue-demi', // dependency of @tanstack/vue-query
35 ],
36 },
37 },
38 ],
39 '@typescript-eslint/ban-types': 'off',
40 '@typescript-eslint/no-empty-function': 'off',
41 'no-case-declarations': 'off',
42 },
43 },
44 {
45 files: ['**/*.spec.ts*', '**/*.test.ts*', '**/*.test-d.ts*'],
46 plugins: { vitest },
47 rules: {
48 ...vitest.configs.recommended.rules,
49 'vitest/expect-expect': 'warn',
50 },
51 settings: { vitest: { typecheck: true } },
52 },
53]