tahamajs/IE / Projects /front /node_modules /@tanstack /react-query /build /query-codemods /root.eslint.config.js
| // @ts-check | |
| // @ts-ignore Needed due to moduleResolution Node vs Bundler | |
| import { tanstackConfig } from '@tanstack/eslint-config' | |
| import pluginCspell from '@cspell/eslint-plugin' | |
| import vitest from '@vitest/eslint-plugin' | |
| export default [ | |
| ...tanstackConfig, | |
| { | |
| name: 'tanstack/temp', | |
| plugins: { | |
| cspell: pluginCspell, | |
| }, | |
| rules: { | |
| 'cspell/spellchecker': [ | |
| 'warn', | |
| { | |
| cspell: { | |
| words: [ | |
| 'Promisable', // Our public interface | |
| 'TSES', // @typescript-eslint package's interface | |
| 'codemod', // We support our codemod | |
| 'combinate', // Library name | |
| 'datatag', // Query options tagging | |
| 'extralight', // Our public interface | |
| 'jscodeshift', | |
| 'refetches', // Query refetch operations | |
| 'retryer', // Our public interface | |
| 'solidjs', // Our target framework | |
| 'tabular-nums', // https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-numeric | |
| 'tanstack', // Our package scope | |
| 'todos', // Too general word to be caught as error | |
| 'tsqd', // Our public interface (TanStack Query Devtools shorthand) | |
| 'tsup', // We use tsup as builder | |
| 'typecheck', // Field of vite.config.ts | |
| 'vue-demi', // dependency of @tanstack/vue-query | |
| 'ɵkind', // Angular specific | |
| 'ɵproviders', // Angular specific | |
| ], | |
| }, | |
| }, | |
| ], | |
| '@typescript-eslint/no-empty-function': 'off', | |
| '@typescript-eslint/no-unsafe-function-type': 'off', | |
| 'no-case-declarations': 'off', | |
| 'prefer-const': 'off', | |
| }, | |
| }, | |
| { | |
| files: ['**/*.spec.ts*', '**/*.test.ts*', '**/*.test-d.ts*'], | |
| plugins: { vitest }, | |
| rules: { | |
| ...vitest.configs.recommended.rules, | |
| 'vitest/consistent-test-it': [ | |
| 'error', | |
| { fn: 'it', withinDescribe: 'it' }, | |
| ], | |
| 'vitest/no-standalone-expect': [ | |
| 'error', | |
| { | |
| additionalTestBlockFunctions: ['itIf'], | |
| }, | |
| ], | |
| }, | |
| settings: { vitest: { typecheck: true } }, | |
| }, | |
| ] | |
Xet Storage Details
- Size:
- 2.2 kB
- Xet hash:
- e3431da51e3eebbfa7f5b24198d139e7da4c1939d7c8938c27787c342192595d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.