ishanvyas22 / cakephpvue-spa

Use shorthand property syntax for object literals JS-0240
Anti-pattern
Minor
5 months ago5 months old
141            }
142        },
143        filters: {
144            moment: function (date) {145                return moment(date).format('YYYY-MM-DD, hh:mm:ss A');146            }147        }
148    }
149</script>
Expected property shorthand
120            },
121            deletePost(id) {
122                axios.post(`/api/posts/delete/${id}`, {
123                        'id': id124                    })
125                    .then(response => {
126                        this.$notify({
134            }
135        },
136        filters: {
137            moment: function (date) {138                return moment(date).format('YYYY-MM-DD, hh:mm A');139            }140        }
141    }
142</script>
Expected property shorthand
113            },
114            deletePost(id) {
115                axios.post(`/api/posts/delete/${id}`, {
116                        'id': id117                    })
118                    .then(response => {
119                        this.$notify({