Passed
Push — master ( 366f40...c67819 )
by Christian
13:04 queued 10s
created

src/app/component/filter/sw-base-filter/index.js (1 issue)

Labels
Severity
1
import template from './sw-base-filter.html.twig';
2
import './sw-base-filter.scss';
3
4
const { Component } = Shopware;
0 ignored issues
show
The variable Shopware seems to be never declared. If this is a global, consider adding a /** global: Shopware */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
5
6
Component.register('sw-base-filter', {
7
    template,
8
9
    props: {
10
        title: {
11
            type: String,
12
            required: true
13
        },
14
        showResetButton: {
15
            type: Boolean,
16
            required: true
17
        }
18
    },
19
20
    methods: {
21
        resetFilter() {
22
            this.$emit('resetFilter');
23
        }
24
    }
25
});
26