BigW Consortium Gitlab

Commit b210cbca by Filipa Lacerda

Fix eslint errors

Fix rubocop error
parent 9a8fa8e0
/*= require vue
/*= require vue */
/* global Vue */
(() => {
......
/*= require vue
/*= require vue */
/* global Vue */
(() => {
......
/*= 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);
},
......
/*= require vue
/*= require vue */
/* global Vue */
(() => {
......
/*= 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
},
},
......
/* 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
});
});
/*= require vue
/*= require vue */
/* global Vue */
(() => {
window.gl = window.gl || {};
......
require 'spec_helper'
feature 'Environments', feature: true, js:true do
feature 'Environments', feature: true, js: true do
given(:project) { create(:empty_project) }
given(:user) { create(:user) }
given(:role) { :developer }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment