Fix eslint errors

Fix rubocop error
This commit is contained in:
Filipa Lacerda 2016-11-16 11:23:36 +00:00
parent 9a8fa8e04f
commit b210cbca6c
8 changed files with 21 additions and 21 deletions

View File

@ -1,4 +1,4 @@
/*= require vue
/*= require vue */
/* global Vue */
(() => {

View File

@ -1,4 +1,4 @@
/*= require vue
/*= require vue */
/* global Vue */
(() => {

View File

@ -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);
},

View File

@ -1,4 +1,4 @@
/*= require vue
/*= require vue */
/* global Vue */
(() => {

View File

@ -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
},
},

View File

@ -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
});
});

View File

@ -1,4 +1,4 @@
/*= require vue
/*= require vue */
/* global Vue */
(() => {
window.gl = window.gl || {};

View File

@ -1,6 +1,6 @@
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 }