Fix eslint errors
Fix rubocop error
This commit is contained in:
parent
9a8fa8e04f
commit
b210cbca6c
8 changed files with 21 additions and 21 deletions
|
@ -1,4 +1,4 @@
|
|||
/*= require vue
|
||||
/*= require vue */
|
||||
/* global Vue */
|
||||
|
||||
(() => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*= require vue
|
||||
/*= require vue */
|
||||
/* global Vue */
|
||||
|
||||
(() => {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
/*= require lib/utils/timeago
|
||||
/*= require lib/utils/text_utility
|
||||
/*= require vue_common_component/commit
|
||||
/*= require ./environment_actions
|
||||
/*= require ./environment_external_url
|
||||
/*= require ./environment_stop
|
||||
/*= require ./environment_rollback
|
||||
/*= require lib/utils/timeago */
|
||||
/*= require lib/utils/text_utility */
|
||||
/*= require vue_common_component/commit */
|
||||
/*= require ./environment_actions */
|
||||
/*= require ./environment_external_url */
|
||||
/*= require ./environment_stop */
|
||||
/*= require ./environment_rollback */
|
||||
|
||||
/* globals Vue, timeago */
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
|||
* Recursive component based on [Tree View](https://vuejs.org/examples/tree-view.html)
|
||||
*
|
||||
* See this [issue](https://gitlab.com/gitlab-org/gitlab-ce/issues/22539)
|
||||
* for more information.
|
||||
* for more information.15
|
||||
*/
|
||||
|
||||
window.gl = window.gl || {};
|
||||
|
@ -153,7 +153,7 @@
|
|||
* @returns {String}
|
||||
*/
|
||||
createdDate() {
|
||||
const timeagoInstance = new timeago();
|
||||
const timeagoInstance = new timeago(); // eslint-disable-line
|
||||
|
||||
return timeagoInstance.format(this.model.created_at);
|
||||
},
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*= require vue
|
||||
/*= require vue */
|
||||
/* global Vue */
|
||||
|
||||
(() => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*= require vue
|
||||
/*= require vue */
|
||||
/* global Vue */
|
||||
|
||||
(() => {
|
||||
|
@ -15,7 +15,7 @@
|
|||
|
||||
methods: {
|
||||
openConfirmDialog() {
|
||||
return window.confirm('Are you sure you want to stop this environment?');
|
||||
return window.confirm('Are you sure you want to stop this environment?'); // eslint-disable-line
|
||||
},
|
||||
},
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
/* eslint-disable */
|
||||
/* global Vue */
|
||||
Vue.http.interceptors.push((request, next) => {
|
||||
Vue.activeResources = Vue.activeResources ? Vue.activeResources + 1 : 1;
|
||||
|
||||
next(function (response) {
|
||||
if (typeof response.data === "string") {
|
||||
response.data = JSON.parse(response.data)
|
||||
next((response) => {
|
||||
if (typeof response.data === 'string') {
|
||||
response.data = JSON.parse(response.data); // eslint-disable-line
|
||||
}
|
||||
|
||||
Vue.activeResources--;
|
||||
Vue.activeResources--; // eslint-disable-line
|
||||
});
|
||||
});
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*= require vue
|
||||
/*= require vue */
|
||||
/* global Vue */
|
||||
(() => {
|
||||
window.gl = window.gl || {};
|
||||
|
|
Loading…
Reference in a new issue