Passed
Push — v3 ( 78dc30...ba665f )
by Andrew
25:48 queued 16:54
created

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

1
import VueEvents from 'vue-events';
2
import Confetti from '@/vue/Confetti.vue';
3
import DashboardChart from '@/vue/DashboardChart.vue';
4
import DashboardTable from '@/vue/DashboardTable.vue';
5
6
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...
7
// Create our vue instance
8
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...
9
    el: "#cp-nav-content",
10
    components: {
11
        'confetti': Confetti,
12
        'dashboard-chart': DashboardChart,
13
        'dashboard-table': DashboardTable,
14
    },
15
    data: {
16
    },
17
    methods: {
18
        onTableRefresh (vuetable) {
0 ignored issues
show
Space before opening parenthesis of function call prohibited
Loading history...
19
            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...
20
        }
21
    },
22
    mounted() {
23
        this.$events.$on('refresh-table', eventData => this.onTableRefresh(eventData));
24
    },
25
});
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...
26
27
// Accept HMR as per: https://webpack.js.org/api/hot-module-replacement#accept
28
if (module.hot) {
29
    module.hot.accept();
30
}
31