Skip to content

Tag: eslint

Conditionally set v-model in Vue

I have a series of inputs that could be either checkboxes or radio buttons, depending on a value in the data of my vue component. In particular, I have a Question component, and questions may accept only one answer or multiple answers. I have a selected_answers array in my data, and I was thinking I could hav…

Lint issue with for loop

The following logic works as intended. I have no means to change the lint rules. data in this case is just an Object such as follows which gets passed in. This is the function which takes in above data Getting lint errors as follows for my for loop as follows: for..in loops iterate over the entire prototype c…