Skip to content

Commit 3df3b4b

Browse files
ci: update workspace config (#1912)
* ci: update workspace config * ci: apply automated fixes and generate docs * Remove test:format --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 55d5a99 commit 3df3b4b

File tree

23 files changed

+310
-295
lines changed

23 files changed

+310
-295
lines changed

.github/workflows/autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Setup Tools
3131
uses: tanstack/config/.github/setup@main
3232
- name: Fix formatting
33-
run: pnpm prettier:write
33+
run: pnpm format
3434
- name: Generate Docs
3535
if: ${{ github.event_name == 'push' || github.event.inputs.generate-docs == true }}
3636
run: pnpm generate-docs

package.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"test:pr": "nx affected --targets=test:sherif,test:knip,test:docs,test:eslint,test:lib,test:types,test:build,build",
1414
"test:ci": "nx run-many --targets=test:sherif,test:knip,test:docs,test:eslint,test:lib,test:types,test:build,build",
1515
"test:eslint": "nx affected --target=test:eslint",
16-
"test:format": "pnpm run prettier --check",
1716
"test:sherif": "sherif",
1817
"test:lib": "nx affected --target=test:lib --exclude=examples/**",
1918
"test:lib:dev": "pnpm run test:lib && nx watch --all -- pnpm run test:lib",
@@ -25,12 +24,11 @@
2524
"build:all": "nx run-many --target=build --exclude=examples/**",
2625
"watch": "pnpm run build:all && nx watch --all -- pnpm run build:all",
2726
"dev": "pnpm run watch",
28-
"prettier": "prettier --experimental-cli --ignore-unknown '**/*'",
29-
"prettier:write": "pnpm run prettier --write",
27+
"format": "prettier --experimental-cli --ignore-unknown '**/*' --write",
3028
"generate-docs": "node scripts/generate-docs.ts",
3129
"changeset": "changeset",
3230
"changeset:publish": "changeset publish",
33-
"changeset:version": "changeset version && pnpm install --no-frozen-lockfile && pnpm prettier:write"
31+
"changeset:version": "changeset version && pnpm install --no-frozen-lockfile && pnpm format"
3432
},
3533
"nx": {
3634
"includedScripts": [
@@ -55,14 +53,14 @@
5553
"@vitest/coverage-istanbul": "^3.2.4",
5654
"eslint": "9.36.0",
5755
"eslint-plugin-react-hooks": "^5.2.0",
58-
"jsdom": "^27.0.0",
59-
"knip": "^5.63.1",
56+
"jsdom": "^27.2.0",
57+
"knip": "^5.71.0",
6058
"markdown-link-extractor": "^4.0.2",
6159
"nx": "22.1.3",
6260
"premove": "^4.0.0",
63-
"prettier": "^3.6.2",
64-
"publint": "^0.3.13",
65-
"sherif": "^1.6.1",
61+
"prettier": "^3.7.4",
62+
"publint": "^0.3.15",
63+
"sherif": "^1.9.0",
6664
"tinyglobby": "^0.2.15",
6765
"typescript": "5.8.2",
6866
"typescript54": "npm:[email protected]",

packages/angular-form/src/tanstack-field.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ export class TanStackField<
6666
TFormOnDynamicAsync extends undefined | FormAsyncValidateOrFn<TParentData>,
6767
TFormOnServer extends undefined | FormAsyncValidateOrFn<TParentData>,
6868
TSubmitMeta,
69-
> implements OnInit
70-
{
69+
> implements OnInit {
7170
name = input.required<TName>()
7271
defaultValue = input<NoInfer<TData>>()
7372
asyncDebounceMs = input(undefined as never as number, {

packages/form-core/src/FieldApi.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -535,19 +535,19 @@ export interface FieldApiOptions<
535535
in out TFormOnServer extends undefined | FormAsyncValidateOrFn<TParentData>,
536536
in out TParentSubmitMeta,
537537
> extends FieldOptions<
538-
TParentData,
539-
TName,
540-
TData,
541-
TOnMount,
542-
TOnChange,
543-
TOnChangeAsync,
544-
TOnBlur,
545-
TOnBlurAsync,
546-
TOnSubmit,
547-
TOnSubmitAsync,
548-
TOnDynamic,
549-
TOnDynamicAsync
550-
> {
538+
TParentData,
539+
TName,
540+
TData,
541+
TOnMount,
542+
TOnChange,
543+
TOnChangeAsync,
544+
TOnBlur,
545+
TOnBlurAsync,
546+
TOnSubmit,
547+
TOnSubmitAsync,
548+
TOnDynamic,
549+
TOnDynamicAsync
550+
> {
551551
form: FormApi<
552552
TParentData,
553553
TFormOnMount,

packages/form-core/src/FieldGroupApi.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ export class FieldGroupApi<
126126
in out TOnDynamicAsync extends undefined | FormAsyncValidateOrFn<TFormData>,
127127
in out TOnServer extends undefined | FormAsyncValidateOrFn<TFormData>,
128128
in out TSubmitMeta = never,
129-
> implements FieldManipulator<TFieldGroupData, TSubmitMeta>
130-
{
129+
> implements FieldManipulator<TFieldGroupData, TSubmitMeta> {
131130
/**
132131
* The form that called this field group.
133132
*/

packages/form-core/src/FormApi.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,9 @@ export interface FormState<
748748
in out TOnDynamic extends undefined | FormValidateOrFn<TFormData>,
749749
in out TOnDynamicAsync extends undefined | FormAsyncValidateOrFn<TFormData>,
750750
in out TOnServer extends undefined | FormAsyncValidateOrFn<TFormData>,
751-
> extends BaseFormState<
751+
>
752+
extends
753+
BaseFormState<
752754
TFormData,
753755
TOnMount,
754756
TOnChange,
@@ -895,8 +897,7 @@ export class FormApi<
895897
in out TOnDynamicAsync extends undefined | FormAsyncValidateOrFn<TFormData>,
896898
in out TOnServer extends undefined | FormAsyncValidateOrFn<TFormData>,
897899
in out TSubmitMeta = never,
898-
> implements FieldManipulator<TFormData, TSubmitMeta>
899-
{
900+
> implements FieldManipulator<TFormData, TSubmitMeta> {
900901
/**
901902
* The options for the form.
902903
*/
@@ -1184,8 +1185,8 @@ export class FormApi<
11841185
const hasOnMountError = Boolean(
11851186
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
11861187
currBaseStore.errorMap?.onMount ||
1187-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
1188-
fieldMetaValues.some((f) => f?.errorMap?.onMount),
1188+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
1189+
fieldMetaValues.some((f) => f?.errorMap?.onMount),
11891190
)
11901191

11911192
const isValidating = !!isFieldsValidating

packages/form-core/src/util-types.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ export type DeepKeyAndValueObject<
119119
export type UnknownAccessor<TParent extends AnyDeepKeyAndValue> =
120120
TParent['key'] extends never ? string : `${TParent['key']}.${string}`
121121

122-
export interface UnknownDeepKeyAndValue<TParent extends AnyDeepKeyAndValue>
123-
extends AnyDeepKeyAndValue {
122+
export interface UnknownDeepKeyAndValue<
123+
TParent extends AnyDeepKeyAndValue,
124+
> extends AnyDeepKeyAndValue {
124125
key: UnknownAccessor<TParent>
125126
value: unknown
126127
}

packages/lit-form/src/tanstack-form-controller.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,7 @@ export class TanStackFormController<
232232
TFormOnDynamicAsync extends undefined | FormAsyncValidateOrFn<TParentData>,
233233
TFormOnServer extends undefined | FormAsyncValidateOrFn<TParentData>,
234234
TSubmitMeta,
235-
> implements ReactiveController
236-
{
235+
> implements ReactiveController {
237236
#host: ReactiveControllerHost
238237
#subscription?: () => void
239238

packages/react-form-nextjs/src/createServerValidate.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ interface CreateServerValidateOptions<
2929
TOnServer extends undefined | FormAsyncValidateOrFn<TFormData>,
3030
TSubmitMeta,
3131
> extends FormOptions<
32-
TFormData,
33-
TOnMount,
34-
TOnChange,
35-
TOnChangeAsync,
36-
TOnBlur,
37-
TOnBlurAsync,
38-
TOnSubmit,
39-
TOnSubmitAsync,
40-
TOnDynamic,
41-
TOnDynamicAsync,
42-
TOnServer,
43-
TSubmitMeta
44-
> {
32+
TFormData,
33+
TOnMount,
34+
TOnChange,
35+
TOnChangeAsync,
36+
TOnBlur,
37+
TOnBlurAsync,
38+
TOnSubmit,
39+
TOnSubmitAsync,
40+
TOnDynamic,
41+
TOnDynamicAsync,
42+
TOnServer,
43+
TSubmitMeta
44+
> {
4545
onServerValidate: TOnServer
4646
}
4747

packages/react-form-nextjs/src/error.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ interface ServerValidateErrorState<
1111
}
1212

1313
export class ServerValidateError<
14-
TFormData,
15-
TOnServer extends undefined | FormAsyncValidateOrFn<TFormData>,
16-
>
14+
TFormData,
15+
TOnServer extends undefined | FormAsyncValidateOrFn<TFormData>,
16+
>
1717
extends Error
1818
implements ServerValidateErrorState<TFormData, TOnServer>
1919
{

0 commit comments

Comments
 (0)