refactor: Enforce no-explicit-any in design-system (no-changelog) (#4937)

👕 Enforce `no-explicit-any` in design-system
This commit is contained in:
Iván Ovejero
2022-12-15 16:27:17 +01:00
committed by GitHub
parent 4208040495
commit d7b3d649d6
4 changed files with 15 additions and 11 deletions

View File

@@ -57,7 +57,7 @@ export default Vue.extend({
data() {
return {
showValidationWarnings: false,
values: {} as { [key: string]: any },
values: {} as { [key: string]: unknown },
validity: {} as { [key: string]: boolean },
};
},
@@ -89,7 +89,7 @@ export default Vue.extend({
},
},
methods: {
onInput(name: string, value: any) {
onInput(name: string, value: unknown) {
this.values = {
...this.values,
[name]: value, // eslint-disable-line @typescript-eslint/no-unsafe-assignment