Skip to content

Commit

Permalink
Legger til eslint i kjøring av gha
Browse files Browse the repository at this point in the history
  • Loading branch information
hallvardastark committed Nov 13, 2023
1 parent 6aa4c10 commit b7b68ea
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/lint-tscheck-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions packages/form/src/DecimalField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ interface DecimalFieldProps {
}

const createNormalizeOnBlurField = WrappedNavFieldComponent => {
interface FieldComponent {
interface FieldComponentProps {
normalizeOnBlur: (value: any) => void;
component?: () => reduxFormField;
}
class FieldComponent extends Component<FieldComponent & WrappedComponentProps> {
constructor(props: FieldComponent & WrappedComponentProps) {
class FieldComponent extends Component<FieldComponentProps & WrappedComponentProps> {
constructor(props: FieldComponentProps & WrappedComponentProps) {
super(props);
this.blurHandler = this.blurHandler.bind(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,12 @@ VilkarResultPicker.transformValues = (values: FormValues, periodeFom?: string, p
tom: values.valgtPeriodeTom,
},
};
default:
return {
erVilkarOk: null,
avslagskode: null,
periode: null,
};
}
};

Expand Down

0 comments on commit b7b68ea

Please sign in to comment.