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
+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: {