Update Convex with no payload to be just like convex with payload but without payload

This commit is contained in:
Gabriel Brown
2026-06-21 15:35:42 -05:00
parent 13b8b36c4c
commit fba73a92ce
130 changed files with 15637 additions and 32018 deletions
+1 -1
View File
@@ -1 +1 @@
[["1","2","3","4","5","6"],{"key":"7","value":"8"},{"key":"9","value":"10"},{"key":"11","value":"12"},{"key":"13","value":"14"},{"key":"15","value":"16"},{"key":"17","value":"18"},"/home/gib/Documents/Code/convex-monorepo/tools/eslint/base.ts",{"size":2963,"mtime":1774544629518,"hash":"19","data":"20"},"/home/gib/Documents/Code/convex-monorepo/tools/eslint/nextjs.ts",{"size":440,"mtime":1768155639000,"hash":"21","data":"22"},"/home/gib/Documents/Code/convex-monorepo/tools/eslint/.cache/.prettiercache",{"size":1278,"mtime":1774544663913},"/home/gib/Documents/Code/convex-monorepo/tools/eslint/package.json",{"size":1033,"mtime":1774544387169,"hash":"23","data":"24"},"/home/gib/Documents/Code/convex-monorepo/tools/eslint/react.ts",{"size":592,"mtime":1768155639000,"hash":"25","data":"26"},"/home/gib/Documents/Code/convex-monorepo/tools/eslint/tsconfig.json",{"size":94,"mtime":1766222924000,"hash":"27","data":"28"},"6a779439826cf31b5561a21273d134a9",{"hashOfOptions":"29"},"25c52c46972131dcc296288599ff108d",{"hashOfOptions":"30"},"a5326aca75246da261fd2e354257b45a",{"hashOfOptions":"31"},"2292935ede6baf909f6a0c61486e15da",{"hashOfOptions":"32"},"b3c77d33a30318d89c9c2cafcbe00bbe",{"hashOfOptions":"33"},"1686097143","2347540204","302976953","3406150487","1582266352"]
[["1","2","3","4","5","6","7","8","9","10","11"],{"key":"12","value":"13"},{"key":"14","value":"15"},{"key":"16","value":"17"},{"key":"18","value":"19"},{"key":"20","value":"21"},{"key":"22","value":"23"},{"key":"24","value":"25"},{"key":"26","value":"27"},{"key":"28","value":"29"},{"key":"30","value":"31"},{"key":"32","value":"33"},"/home/gib/Documents/Code/convex-monorepo/tools/eslint/base.ts",{"size":3633,"mtime":1782065095163,"hash":"34","data":"35"},"/home/gib/Documents/Code/Spoon/tools/eslint/base.ts",{"size":3633,"mtime":1782065095163,"data":"36"},"/home/gib/Documents/Code/convex-monorepo/tools/eslint/nextjs.ts",{"size":440,"mtime":1768155639000,"hash":"37","data":"38"},"/home/gib/Documents/Code/Spoon/tools/eslint/nextjs.ts",{"size":440,"mtime":1768155639000,"data":"39"},"/home/gib/Documents/Code/convex-monorepo/tools/eslint/.cache/.prettiercache",{"size":1279,"mtime":1782065457379},"/home/gib/Documents/Code/convex-monorepo/tools/eslint/package.json",{"size":1034,"mtime":1774588268325,"hash":"40","data":"41"},"/home/gib/Documents/Code/convex-monorepo/tools/eslint/react.ts",{"size":648,"mtime":1782065095163,"hash":"42","data":"43"},"/home/gib/Documents/Code/Spoon/tools/eslint/package.json",{"size":1034,"mtime":1774588268325,"data":"44"},"/home/gib/Documents/Code/Spoon/tools/eslint/react.ts",{"size":648,"mtime":1782065095163,"data":"45"},"/home/gib/Documents/Code/convex-monorepo/tools/eslint/tsconfig.json",{"size":206,"mtime":1782065095163,"hash":"46","data":"47"},"/home/gib/Documents/Code/Spoon/tools/eslint/tsconfig.json",{"size":206,"mtime":1782065095163,"data":"48"},"6a779439826cf31b5561a21273d134a9",{"hashOfOptions":"49"},{"hashOfOptions":"50"},"25c52c46972131dcc296288599ff108d",{"hashOfOptions":"51"},{"hashOfOptions":"52"},"a5326aca75246da261fd2e354257b45a",{"hashOfOptions":"53"},"2292935ede6baf909f6a0c61486e15da",{"hashOfOptions":"54"},{"hashOfOptions":"55"},{"hashOfOptions":"56"},"b3c77d33a30318d89c9c2cafcbe00bbe",{"hashOfOptions":"57"},{"hashOfOptions":"58"},"2972291121","3032047003","913597734","2300583312","3435599103","1812383389","2486684693","433345459","1457439786","582079124"]
+23 -1
View File
@@ -11,6 +11,12 @@ import tseslint from 'typescript-eslint';
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const preferArrowPlugin = preferArrowFunctions as any;
const turboRecommendedRules = (
turboPlugin as unknown as {
configs: { recommended: { rules: Record<string, string> } };
}
).configs.recommended.rules;
/**
* All packages that leverage t3-env should use this rule
*/
@@ -59,7 +65,7 @@ export const baseConfig = defineConfig(
...tseslint.configs.stylisticTypeChecked,
],
rules: {
...turboPlugin.configs.recommended.rules,
...turboRecommendedRules,
'@typescript-eslint/no-unused-vars': [
'warn',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
@@ -88,6 +94,22 @@ export const baseConfig = defineConfig(
],
},
},
{
files: [
'**/tests/**/*.{ts,tsx}',
'**/*.test.{ts,tsx}',
'**/*.spec.{ts,tsx}',
],
rules: {
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unnecessary-condition': 'off',
},
},
{
linterOptions: { reportUnusedDisableDirectives: true },
languageOptions: {
+4 -4
View File
@@ -13,16 +13,16 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@eslint/compat": "^1.4.0",
"@eslint/compat": "^2.0.3",
"@eslint/js": "catalog:",
"@next/eslint-plugin-next": "^16.0.0",
"@next/eslint-plugin-next": "^16.2.1",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-prefer-arrow-functions": "^3.9.1",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-turbo": "^2.5.8",
"typescript-eslint": "^8.46.2"
"eslint-plugin-turbo": "^2.8.20",
"typescript-eslint": "^8.57.2"
},
"devDependencies": {
"@gib/prettier-config": "workspace:*",
+7 -4
View File
@@ -1,15 +1,18 @@
import type { Linter } from 'eslint';
import reactPlugin from 'eslint-plugin-react';
import reactHooks from 'eslint-plugin-react-hooks';
import { defineConfig } from 'eslint/config';
const reactFlat = reactPlugin.configs.flat as Record<string, Linter.Config>;
export const reactConfig = defineConfig(
{
files: ['**/*.ts', '**/*.tsx'],
...reactPlugin.configs.flat.recommended,
...reactPlugin.configs.flat['jsx-runtime'],
...reactFlat.recommended,
...reactFlat['jsx-runtime'],
languageOptions: {
...reactPlugin.configs.flat.recommended?.languageOptions,
...reactPlugin.configs.flat['jsx-runtime']?.languageOptions,
...reactFlat.recommended?.languageOptions,
...reactFlat['jsx-runtime']?.languageOptions,
globals: {
React: 'writable',
},
+5
View File
@@ -1,5 +1,10 @@
{
"extends": "@gib/tsconfig/base.json",
"compilerOptions": {
"module": "NodeNext",
"moduleResolution": "NodeNext",
"types": ["node"]
},
"include": ["."],
"exclude": ["node_modules"]
}
+1 -1
View File
@@ -1 +1 @@
[["1","2","3","4"],{"key":"5","value":"6"},{"key":"7","value":"8"},{"key":"9","value":"10"},{"key":"11","value":"12"},"/home/gib/Documents/Code/convex-monorepo/tools/prettier/.cache/.prettiercache",{"size":832,"mtime":1774544663588},"/home/gib/Documents/Code/convex-monorepo/tools/prettier/index.js",{"size":1194,"mtime":1768372320442,"hash":"13","data":"14"},"/home/gib/Documents/Code/convex-monorepo/tools/prettier/package.json",{"size":607,"mtime":1774032385569,"hash":"15","data":"16"},"/home/gib/Documents/Code/convex-monorepo/tools/prettier/tsconfig.json",{"size":94,"mtime":1766222924000,"hash":"17","data":"18"},"ecbaa91166a940dfcec8117059f52402",{"hashOfOptions":"19"},"11b634ce56ac720ac9a2860d77fbd2cc",{"hashOfOptions":"20"},"b3c77d33a30318d89c9c2cafcbe00bbe",{"hashOfOptions":"21"},"1828250668","802511607","4250532914"]
[["1","2","3","4","5","6","7"],{"key":"8","value":"9"},{"key":"10","value":"11"},{"key":"12","value":"13"},{"key":"14","value":"15"},{"key":"16","value":"17"},{"key":"18","value":"19"},{"key":"20","value":"21"},"/home/gib/Documents/Code/convex-monorepo/tools/prettier/.cache/.prettiercache",{"size":831,"mtime":1782065457221},"/home/gib/Documents/Code/convex-monorepo/tools/prettier/index.js",{"size":1194,"mtime":1768372320442,"hash":"22","data":"23"},"/home/gib/Documents/Code/Spoon/tools/prettier/index.js",{"size":1194,"mtime":1768372320442,"data":"24"},"/home/gib/Documents/Code/convex-monorepo/tools/prettier/package.json",{"size":607,"mtime":1774032385569,"hash":"25","data":"26"},"/home/gib/Documents/Code/Spoon/tools/prettier/package.json",{"size":607,"mtime":1774032385569,"data":"27"},"/home/gib/Documents/Code/convex-monorepo/tools/prettier/tsconfig.json",{"size":94,"mtime":1766222924000,"hash":"28","data":"29"},"/home/gib/Documents/Code/Spoon/tools/prettier/tsconfig.json",{"size":94,"mtime":1766222924000,"data":"30"},"ecbaa91166a940dfcec8117059f52402",{"hashOfOptions":"31"},{"hashOfOptions":"32"},"11b634ce56ac720ac9a2860d77fbd2cc",{"hashOfOptions":"33"},{"hashOfOptions":"34"},"b3c77d33a30318d89c9c2cafcbe00bbe",{"hashOfOptions":"35"},{"hashOfOptions":"36"},"714910834","994643592","2807242045","3735923027","663931756","1391543510"]
+1 -1
View File
@@ -1 +1 @@
[{"/home/gib/Documents/Code/convex-monorepo/tools/tailwind/postcss-config.js":"1"},{"size":70,"mtime":1768155639000,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","suppressedMessages":"6","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"z9il2c","/home/gib/Documents/Code/convex-monorepo/tools/tailwind/postcss-config.js",[],[]]
[{"/home/gib/Documents/Code/convex-monorepo/tools/tailwind/postcss-config.js":"1","/home/gib/Documents/Code/Spoon/tools/tailwind/postcss-config.js":"2"},{"size":70,"mtime":1768155639000,"results":"3","hashOfConfig":"4"},{"size":70,"mtime":1768155639000,"results":"5","hashOfConfig":"6"},{"filePath":"7","messages":"8","suppressedMessages":"9","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"zvlfqu",{"filePath":"10","messages":"11","suppressedMessages":"12","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"2ian8q","/home/gib/Documents/Code/convex-monorepo/tools/tailwind/postcss-config.js",[],[],"/home/gib/Documents/Code/Spoon/tools/tailwind/postcss-config.js",[],[]]
+1 -1
View File
@@ -1 +1 @@
[["1","2","3","4","5","6","7"],{"key":"8","value":"9"},{"key":"10","value":"11"},{"key":"12","value":"13"},{"key":"14","value":"15"},{"key":"16","value":"17"},{"key":"18","value":"19"},{"key":"20","value":"21"},"/home/gib/Documents/Code/convex-monorepo/tools/tailwind/.cache/.eslintcache",{"size":396,"mtime":1774544641255},"/home/gib/Documents/Code/convex-monorepo/tools/tailwind/.cache/.prettiercache",{"size":1450,"mtime":1774544663751},"/home/gib/Documents/Code/convex-monorepo/tools/tailwind/package.json",{"size":851,"mtime":1774032407411,"hash":"22","data":"23"},"/home/gib/Documents/Code/convex-monorepo/tools/tailwind/tsconfig.json",{"size":94,"mtime":1766222924000,"hash":"24","data":"25"},"/home/gib/Documents/Code/convex-monorepo/tools/tailwind/eslint.config.ts",{"size":143,"mtime":1768155639000,"hash":"26","data":"27"},"/home/gib/Documents/Code/convex-monorepo/tools/tailwind/theme.css",{"size":7273,"mtime":1768320378000,"hash":"28","data":"29"},"/home/gib/Documents/Code/convex-monorepo/tools/tailwind/postcss-config.js",{"size":70,"mtime":1768155639000,"hash":"30","data":"31"},"0d22e47f57739db9de04c6f8420d6fb5",{"hashOfOptions":"32"},"b3c77d33a30318d89c9c2cafcbe00bbe",{"hashOfOptions":"33"},"b8fec960cb32340eea62ca1485093e68",{"hashOfOptions":"34"},"e40c2569ef375a9c828c80c0f9ce1bf2",{"hashOfOptions":"35"},"9a944fbda06979be39571bd9bd00b0d9",{"hashOfOptions":"36"},"286235122","2846522359","1288936688","2683656544","1694755693"]
[["1","2","3","4","5","6","7","8","9","10","11","12"],{"key":"13","value":"14"},{"key":"15","value":"16"},{"key":"17","value":"18"},{"key":"19","value":"20"},{"key":"21","value":"22"},{"key":"23","value":"24"},{"key":"25","value":"26"},{"key":"27","value":"28"},{"key":"29","value":"30"},{"key":"31","value":"32"},{"key":"33","value":"34"},{"key":"35","value":"36"},"/home/gib/Documents/Code/convex-monorepo/tools/tailwind/.cache/.eslintcache",{"size":396,"mtime":1782065401300},"/home/gib/Documents/Code/convex-monorepo/tools/tailwind/.cache/.prettiercache",{"size":1451,"mtime":1782065457110},"/home/gib/Documents/Code/convex-monorepo/tools/tailwind/package.json",{"size":851,"mtime":1774032407411,"hash":"37","data":"38"},"/home/gib/Documents/Code/Spoon/tools/tailwind/package.json",{"size":851,"mtime":1774032407411,"data":"39"},"/home/gib/Documents/Code/convex-monorepo/tools/tailwind/tsconfig.json",{"size":114,"mtime":1782065138084,"hash":"40","data":"41"},"/home/gib/Documents/Code/Spoon/tools/tailwind/tsconfig.json",{"size":114,"mtime":1782065138084,"data":"42"},"/home/gib/Documents/Code/convex-monorepo/tools/tailwind/eslint.config.ts",{"size":143,"mtime":1768155639000,"hash":"43","data":"44"},"/home/gib/Documents/Code/Spoon/tools/tailwind/eslint.config.ts",{"size":143,"mtime":1768155639000,"data":"45"},"/home/gib/Documents/Code/convex-monorepo/tools/tailwind/theme.css",{"size":7273,"mtime":1768320378000,"hash":"46","data":"47"},"/home/gib/Documents/Code/Spoon/tools/tailwind/theme.css",{"size":7273,"mtime":1768320378000,"data":"48"},"/home/gib/Documents/Code/convex-monorepo/tools/tailwind/postcss-config.js",{"size":70,"mtime":1768155639000,"hash":"49","data":"50"},"/home/gib/Documents/Code/Spoon/tools/tailwind/postcss-config.js",{"size":70,"mtime":1768155639000,"data":"51"},"0d22e47f57739db9de04c6f8420d6fb5",{"hashOfOptions":"52"},{"hashOfOptions":"53"},"b3c77d33a30318d89c9c2cafcbe00bbe",{"hashOfOptions":"54"},{"hashOfOptions":"55"},"b8fec960cb32340eea62ca1485093e68",{"hashOfOptions":"56"},{"hashOfOptions":"57"},"e40c2569ef375a9c828c80c0f9ce1bf2",{"hashOfOptions":"58"},{"hashOfOptions":"59"},"9a944fbda06979be39571bd9bd00b0d9",{"hashOfOptions":"60"},{"hashOfOptions":"61"},"2290965560","3219646542","3554888497","4282500251","3656472886","2442137420","327787162","2416690692","3684384935","3250589713"]
+1 -1
View File
@@ -1,5 +1,5 @@
{
"extends": "@gib/tsconfig/base.json",
"include": ["."],
"exclude": ["node_modules"]
"exclude": ["node_modules", "eslint.config.ts"]
}
+24
View File
@@ -0,0 +1,24 @@
import { fileURLToPath } from 'node:url';
import react from '@vitejs/plugin-react';
import { defineProject } from 'vitest/config';
const jsdomSetup = fileURLToPath(new URL('./setup-jsdom.ts', import.meta.url));
export const nodeProject = (name: string, include: string[]) =>
defineProject({ test: { name, environment: 'node', include } });
export const jsdomProject = (name: string, include: string[]) =>
defineProject({
plugins: [react()],
test: { name, environment: 'jsdom', include, setupFiles: [jsdomSetup] },
});
export const convexProject = (name: string, include: string[]) =>
defineProject({
test: {
name,
environment: 'edge-runtime',
include,
server: { deps: { inline: ['convex-test'] } },
},
});
+27
View File
@@ -0,0 +1,27 @@
{
"name": "@gib/vitest-config",
"private": true,
"type": "module",
"exports": {
".": "./index.ts",
"./setup-jsdom": "./setup-jsdom.ts"
},
"scripts": {
"clean": "git clean -xdf .cache .turbo node_modules",
"format": "prettier --check . --ignore-path ../../.gitignore",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@testing-library/jest-dom": "catalog:test",
"@vitejs/plugin-react": "catalog:test"
},
"devDependencies": {
"@gib/prettier-config": "workspace:*",
"@gib/tsconfig": "workspace:*",
"@types/node": "catalog:",
"prettier": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:test"
},
"prettier": "@gib/prettier-config"
}
+1
View File
@@ -0,0 +1 @@
import '@testing-library/jest-dom/vitest';
+6
View File
@@ -0,0 +1,6 @@
{
"extends": "@gib/tsconfig/base.json",
"compilerOptions": { "lib": ["ES2022", "dom", "dom.iterable"] },
"include": ["."],
"exclude": ["node_modules"]
}