Initial commit

This commit is contained in:
Ammaar Reshi
2025-01-04 14:06:53 +00:00
parent 7082408604
commit d6025af146
23760 changed files with 3299690 additions and 0 deletions

View File

@ -0,0 +1,18 @@
// @ts-check
import rootConfig from '../../eslint.config.js'
export default [
...rootConfig,
{
rules: {
'cspell/spellchecker': 'off',
'@typescript-eslint/no-unnecessary-condition': 'off',
'import/no-duplicates': 'off',
'import/no-unresolved': 'off',
'import/order': 'off',
'no-shadow': 'off',
'sort-imports': 'off',
},
},
]

View File

@ -0,0 +1,37 @@
{
"name": "@tanstack/query-codemods",
"private": true,
"description": "Collection of codemods to make the migration easier.",
"author": "Balázs Máté Petró",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/TanStack/query.git",
"directory": "packages/query-codemods"
},
"homepage": "https://tanstack.com/query",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/tannerlinsley"
},
"scripts": {
"test:eslint": "eslint ./src",
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch"
},
"type": "module",
"exports": {
"./package.json": "./package.json"
},
"sideEffects": false,
"files": [
"src",
"!src/jest.config.js",
"!src/**/__testfixtures__",
"!src/**/__tests__"
],
"devDependencies": {
"@types/jscodeshift": "0.11.11",
"jscodeshift": "17.0.0"
}
}

View File

@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"moduleResolution": "Bundler"
},
"include": ["src", "eslint.config.js", "vite.config.ts"]
}

View File

@ -0,0 +1,14 @@
import { defineConfig } from 'vitest/config'
import packageJson from './package.json'
export default defineConfig({
test: {
name: packageJson.name,
dir: './src',
watch: false,
globals: true,
coverage: { enabled: true, provider: 'istanbul', include: ['src/**/*'] },
typecheck: { enabled: true },
restoreMocks: true,
},
})