From b7b68ea51b2e36e7225c5b2d5bbc644db00d17c8 Mon Sep 17 00:00:00 2001 From: Hallvard Andreas Stark Date: Mon, 13 Nov 2023 11:33:24 +0100 Subject: [PATCH] =?UTF-8?q?Legger=20til=20eslint=20i=20kj=C3=B8ring=20av?= =?UTF-8?q?=20gha?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/lint-tscheck-build.yml | 5 ++++- packages/form/src/DecimalField.tsx | 6 +++--- .../src/vilkar/VilkarResultPickerPeriodisert.tsx | 6 ++++++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint-tscheck-build.yml b/.github/workflows/lint-tscheck-build.yml index 108ba3b061..4bf56f5796 100644 --- a/.github/workflows/lint-tscheck-build.yml +++ b/.github/workflows/lint-tscheck-build.yml @@ -36,7 +36,10 @@ jobs: - name: Typescript-sjekk run: yarn ts-check - - name: Linting + - name: Eslint + run: yarn lint + + - name: CSS-lint run: yarn css:lint - name: Sjekker at koden bygger diff --git a/packages/form/src/DecimalField.tsx b/packages/form/src/DecimalField.tsx index 2c0a312d3d..0135bdc7a0 100644 --- a/packages/form/src/DecimalField.tsx +++ b/packages/form/src/DecimalField.tsx @@ -23,12 +23,12 @@ interface DecimalFieldProps { } const createNormalizeOnBlurField = WrappedNavFieldComponent => { - interface FieldComponent { + interface FieldComponentProps { normalizeOnBlur: (value: any) => void; component?: () => reduxFormField; } - class FieldComponent extends Component { - constructor(props: FieldComponent & WrappedComponentProps) { + class FieldComponent extends Component { + constructor(props: FieldComponentProps & WrappedComponentProps) { super(props); this.blurHandler = this.blurHandler.bind(this); } diff --git a/packages/prosess-felles/src/vilkar/VilkarResultPickerPeriodisert.tsx b/packages/prosess-felles/src/vilkar/VilkarResultPickerPeriodisert.tsx index bdee2ee8ed..4b81884c0b 100644 --- a/packages/prosess-felles/src/vilkar/VilkarResultPickerPeriodisert.tsx +++ b/packages/prosess-felles/src/vilkar/VilkarResultPickerPeriodisert.tsx @@ -266,6 +266,12 @@ VilkarResultPicker.transformValues = (values: FormValues, periodeFom?: string, p tom: values.valgtPeriodeTom, }, }; + default: + return { + erVilkarOk: null, + avslagskode: null, + periode: null, + }; } };