Passed
Push — v3 ( 2b006a...43f239 )
by Andrew
33:34 queued 16:32
created

src/assetbundles/retour/src/js/Redirects.js (7 issues)

1
import VueEvents from 'vue-events';
2
import RedirectsTable from '@/vue/RedirectsTable.vue';
3
4
Vue.use(VueEvents);
0 ignored issues
show
The variable Vue seems to be never declared. If this is a global, consider adding a /** global: Vue */ 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
// Create our vue instance
6
const vm = new Vue({
0 ignored issues
show
The opening parenthesis of a multi-line function call should be the last content on the line.
Loading history...
The constant vm seems to be never used. Consider removing it.
Loading history...
7
    el: "#cp-nav-content",
8
    components: {
9
        'redirects-table': RedirectsTable,
10
    },
11
    data: {
12
    },
13
    methods: {
14
        onTableRefresh (vuetable) {
0 ignored issues
show
Space before opening parenthesis of function call prohibited
Loading history...
15
            Vue.nextTick( () => vuetable.refresh());
0 ignored issues
show
Space after opening parenthesis of function call prohibited
Loading history...
The variable Vue seems to be never declared. If this is a global, consider adding a /** global: Vue */ 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...
16
        }
17
    },
18
    mounted() {
19
        this.$events.$on('refresh-table', eventData => this.onTableRefresh(eventData));
20
    },
21
});
0 ignored issues
show
For multi-line function calls, the closing parenthesis should be on a new line.

If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line:

someFunctionCall(
    $firstArgument,
    $secondArgument,
    $thirdArgument
); // Closing parenthesis on a new line.
Loading history...
22
23
// Accept HMR as per: https://webpack.js.org/api/hot-module-replacement#accept
24
if (module.hot) {
25
    module.hot.accept();
26
}
27