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 */ /* global Vue */
class BoardService { class BoardService {
......
...@@ -36,6 +36,8 @@ ...@@ -36,6 +36,8 @@
/* global ProjectShow */ /* global ProjectShow */
/* global Labels */ /* global Labels */
/* global Shortcuts */ /* global Shortcuts */
/* global WeightSelect */
/* global AdminEmailSelect */
(function() { (function() {
var Dispatcher; var Dispatcher;
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
/* global UsersSelect */ /* global UsersSelect */
/* global ZenMode */ /* global ZenMode */
/* global Autosave */ /* global Autosave */
/* global GroupsSelect */
(function() { (function() {
var bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; 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 => {
global.gl = global.gl || {}; global.gl = global.gl || {};
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
addSelectedItem(selectedItem) { addSelectedItem(selectedItem) {
var itemToAdd = {}; var itemToAdd = {};
// If the item already exists, just use it // If the item already exists, just use it
let index = -1; let index = -1;
let selectedItems = this.getAllSelectedItems(); let selectedItems = this.getAllSelectedItems();
...@@ -286,17 +286,17 @@ ...@@ -286,17 +286,17 @@
let selectedItems = this.getSelectedItems(); let selectedItems = this.getSelectedItems();
// ID property is handled differently locally from the server // ID property is handled differently locally from the server
// //
// For Groups // For Groups
// In dropdown: `id` // In dropdown: `id`
// For submit: `group_id` // For submit: `group_id`
// //
// For Roles // For Roles
// In dropdown: `id` // In dropdown: `id`
// For submit: `access_level` // For submit: `access_level`
// //
// For Users // For Users
// In dropdown: `id` // In dropdown: `id`
// For submit: `user_id` // For submit: `user_id`
/* /*
...@@ -323,7 +323,7 @@ ...@@ -323,7 +323,7 @@
if (current.type !== LEVEL_TYPES.USER) { continue; } if (current.type !== LEVEL_TYPES.USER) { continue; }
// Collect selected users // Collect selected users
selectedUsers.push({ selectedUsers.push({
id: current.user_id, id: current.user_id,
name: current.name, 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 ProtectedBranchDropdown */
(global => { (global => {
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
} }
} }
formData.protected_branch[`${ACCESS_LEVELS[ACCESS_LEVEL]}_attributes`] = levelAttributes; formData.protected_branch[`${ACCESS_LEVELS[ACCESS_LEVEL]}_attributes`] = levelAttributes;
} }
return formData; 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