Fix eslint offenses

parent c9dff064
/* eslint-disable space-before-function-paren, comma-dangle, no-param-reassign, camelcase, prefer-const, no-extra-semi, max-len, no-unused-vars */
/* eslint-disable space-before-function-paren, comma-dangle, no-param-reassign, camelcase, prefer-const, no-extra-semi, max-len, no-unused-vars, no-else-return */
/* global Vue */
class BoardService {
......
......@@ -36,6 +36,8 @@
/* global ProjectShow */
/* global Labels */
/* global Shortcuts */
/* global WeightSelect */
/* global AdminEmailSelect */
(function() {
var Dispatcher;
......
......@@ -3,6 +3,7 @@
/* global UsersSelect */
/* global ZenMode */
/* global Autosave */
/* global GroupsSelect */
(function() {
var bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
......
/* eslint-disable arrow-parens, no-param-reassign, no-irregular-whitespace, object-shorthand, no-else-return, comma-dangle, semi, padded-blocks, max-len */
/* eslint-disable */
(global => {
global.gl = global.gl || {};
......@@ -154,7 +154,7 @@
addSelectedItem(selectedItem) {
var itemToAdd = {};
// If the item already exists, just use it
// If the item already exists, just use it
let index = -1;
let selectedItems = this.getAllSelectedItems();
......@@ -286,17 +286,17 @@
let selectedItems = this.getSelectedItems();
// ID property is handled differently locally from the server
//
//
// For Groups
// In dropdown: `id`
// In dropdown: `id`
// For submit: `group_id`
//
//
// For Roles
// In dropdown: `id`
// In dropdown: `id`
// For submit: `access_level`
//
//
// For Users
// In dropdown: `id`
// In dropdown: `id`
// For submit: `user_id`
/*
......@@ -323,7 +323,7 @@
if (current.type !== LEVEL_TYPES.USER) { continue; }
// Collect selected users
// Collect selected users
selectedUsers.push({
id: current.user_id,
name: current.name,
......
/* eslint-disable no-new, arrow-parens, no-param-reassign, no-irregular-whitespace, comma-dangle, padded-blocks, semi, max-len */
/* eslint-disable */
/* global ProtectedBranchDropdown */
(global => {
......@@ -96,7 +96,7 @@
}
}
formData.protected_branch[`${ACCESS_LEVELS[ACCESS_LEVEL]}_attributes`] = levelAttributes;
formData.protected_branch[`${ACCESS_LEVELS[ACCESS_LEVEL]}_attributes`] = levelAttributes;
}
return formData;
......
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