[Vuejs]-Definition for rule 'vue/require-prop-types' was not found vue/require-prop-types

0๐Ÿ‘

I would assume you have an extra closing โ€˜}โ€™ at the value prop.

props: {
    value: {
        required: false,
        } <--
    },
    highlightSearchTerm: {
        type: Boolean,
        required: false,
        default: true,
    },
    placeholder: {
        type: String,
        required: false,
        default: '',
    },
    resetOption: {
        type: String,
        required: false,
        default: '',
    },
    labelProperty: {
        type: [String, Array],
        required: false,
        default: 'name',
    },
    labelCallback: {
        type: Function,
        required: false,
        default: null,
    },
    entity: {
        required: true,
        type: String,
    },
    resultLimit: {
        type: Number,
        required: false,
        default: 25,
    },
    criteria: {
        type: Object,
        required: false,
        default() {
            return (new Criteria(1, this.resultLimit)).getAssociation('stateMachine').addFilter(Criteria.equals('state_machine_state.stateMachine.technicalName', 'order_transaction.state'));
        },
    },
    context: {
        type: Object,
        required: false,
        default() {
            return Shopware.Context.api;
        },
    },

    disableAutoClose: {
        type: Boolean,
        required: false,
        default: false,
    },
},

Leave a comment