Skip to content

feat: fix typing and lint #759

feat: fix typing and lint

feat: fix typing and lint #759

Triggered via push October 8, 2024 14:30
Status Failure
Total duration 5m 33s
Artifacts
Matrix: e2e
release
0s
release
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 32 warnings
build: src/components/form/fields/DateField.tsx#L21
Type '{ input: FieldInputProps<any, HTMLElement>; meta: FieldMetaState<any>; editable: true; date: any; calendar: "gregory"; onDateSelect: (date: { ...; }) => void; timeZone: string; }' is not assignable to type 'IntrinsicAttributes & Omit<InputFieldProps, "type" | "value" | "label"> & CalendarProps'.
build
Process completed with exit code 2.
lint: src/components/form/fields/DateField.tsx#L21
'input' is missing in props validation
lint: src/components/form/fields/DateField.tsx#L22
'meta' is missing in props validation
lint: src/components/form/fields/DateField.tsx#L24
'input' is missing in props validation
lint: src/components/form/fields/DateField.tsx#L24
'input.value' is missing in props validation
lint: src/components/form/fields/DateField.tsx#L27
'input' is missing in props validation
lint: src/components/form/fields/DateField.tsx#L27
'input.onChange' is missing in props validation
lint: src/pages/organisationUnits/New.tsx#L10
`../../components/form/DefaultFormContents` import should occur before import of `../../lib`
lint: src/pages/organisationUnits/form/organisationUnitSchema.ts#L3
`../../../lib` import should occur before import of `../../categories/Edit`
lint: src/pages/organisationUnits/form/organisationUnitSchema.ts#L5
`../../../types/generated` import should occur before import of `../../categories/Edit`
lint
Process completed with exit code 1.
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, c-hive/gha-yarn-cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v3, c-hive/gha-yarn-cache@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, c-hive/gha-yarn-cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v3, c-hive/gha-yarn-cache@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
lint
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
lint
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
lint: .prettierrc.js#L1
File ignored by default.
lint: src/app/sidebar/Sidebar.spec.tsx#L3
Using exported name 'userEvent' as identifier for default export
lint: src/components/form/fields/DateField.tsx#L1
'i18n' is defined but never used
lint: src/components/form/fields/DateField.tsx#L2
'TextAreaFieldFF' is defined but never used
lint: src/components/form/fields/DateField.tsx#L5
'SchemaSection' is defined but never used
lint: src/components/form/fields/DateField.tsx#L5
'useCheckMaxLengthFromSchema' is defined but never used
lint: src/components/form/fields/DateField.tsx#L9
'label' is defined but never used
lint: src/components/form/fields/DateField.tsx#L10
'calendar' is assigned a value but never used
lint: src/components/loading/Loader.spec.tsx#L7
Unexpected any. Specify a different type
lint: src/components/loading/Loader.spec.tsx#L20
Unexpected any. Specify a different type
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, c-hive/gha-yarn-cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v3, c-hive/gha-yarn-cache@v1, codecov/codecov-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
test
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
e2e (1)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
e2e (1)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v1, cypress-io/github-action@v5. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
e2e (2)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
e2e (2)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v1, cypress-io/github-action@v5. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/