Commit 2be579ad authored by Lukas Eipert's avatar Lukas Eipert

Fix new eslint failures from major upgrade

parent 4b5f8afa
/* eslint-disable max-classes-per-file */
import $ from 'jquery'; import $ from 'jquery';
import Pikaday from 'pikaday'; import Pikaday from 'pikaday';
import dateFormat from 'dateformat'; import dateFormat from 'dateformat';
......
/* eslint-disable one-var, consistent-return */ /* eslint-disable max-classes-per-file, one-var, consistent-return */
import $ from 'jquery'; import $ from 'jquery';
import _ from 'underscore'; import _ from 'underscore';
......
...@@ -61,7 +61,7 @@ export default { ...@@ -61,7 +61,7 @@ export default {
eventHub.$emit('EnablePolling'); eventHub.$emit('EnablePolling');
}, },
updateTimer() { updateTimer() {
this.timer = this.timer - 1; this.timer -= 1;
if (this.timer === 0) { if (this.timer === 0) {
this.refresh(); this.refresh();
......
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
/> />
<apollo-mutation <apollo-mutation
v-else v-else
v-slot="{ mutate, loading, error }" v-slot="{ mutate, loading }"
:mutation="$options.createNoteMutation" :mutation="$options.createNoteMutation"
:variables="{ :variables="{
input: mutationPayload, input: mutationPayload,
......
...@@ -43,7 +43,7 @@ export default class GroupMemberStore { ...@@ -43,7 +43,7 @@ export default class GroupMemberStore {
sortMembers(sortByColumn) { sortMembers(sortByColumn) {
if (sortByColumn) { if (sortByColumn) {
this.state.currentSortedColumn = sortByColumn; this.state.currentSortedColumn = sortByColumn;
this.state.sortOrders[sortByColumn] = this.state.sortOrders[sortByColumn] * -1; this.state.sortOrders[sortByColumn] *= -1;
const currentColumnOrder = this.state.sortOrders[sortByColumn] || 1; const currentColumnOrder = this.state.sortOrders[sortByColumn] || 1;
const members = this.state.members.slice().sort((a, b) => { const members = this.state.members.slice().sort((a, b) => {
......
/* eslint-disable func-names, prefer-arrow-callback, no-var, no-alert */ /* eslint-disable func-names, no-var, no-alert */
/* global $ */ /* global $ */
/* global AP */ /* global AP */
......
/* eslint-disable arrow-body-style */
import $ from 'jquery'; import $ from 'jquery';
import GlFieldErrors from '~/gl_field_errors'; import GlFieldErrors from '~/gl_field_errors';
......
...@@ -18,7 +18,7 @@ describe('IssueAssigneesComponent', () => { ...@@ -18,7 +18,7 @@ describe('IssueAssigneesComponent', () => {
...props, ...props,
}, },
}); });
vm = wrapper.vm; // eslint-disable-line vm = wrapper.vm;
}; };
const findTooltipText = () => wrapper.find('.js-assignee-tooltip').text(); const findTooltipText = () => wrapper.find('.js-assignee-tooltip').text();
......
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