Commit 337acf4b authored by Mike Greiling's avatar Mike Greiling

fix eslint failures

parent f68a3f3f
......@@ -102,8 +102,7 @@ window.dateFormat = dateFormat;
};
w.gl.utils.updateTimeagoText = function(el) {
const timeago = gl.utils.getTimeago();
const formattedDate = timeago.format(el.getAttribute('datetime'), 'gl_en');
const formattedDate = gl.utils.getTimeago().format(el.getAttribute('datetime'), 'gl_en');
if (el.textContent !== formattedDate) {
el.textContent = formattedDate;
......
/* eslint-disable no-unused-expressions, no-prototype-builtins, no-new, no-shadow, max-len */
import 'vendor/jquery.endless-scroll.js';
import 'vendor/jquery.endless-scroll';
import '~/pager';
import '~/activities';
......
......@@ -11,7 +11,7 @@ import '~/boards/models/assignee';
import '~/boards/models/list';
import '~/boards/models/label';
import '~/boards/stores/boards_store';
const boardCard = require('~/boards/components/board_card').default;
import boardCard from '~/boards/components/board_card';
import './mock_data';
describe('Issue card', () => {
......
/* eslint-disable no-var, comma-dangle, object-shorthand */
import '~/merge_request_tabs';
import '~/commit/pipelines/pipelines_bundle.js';
import '~/commit/pipelines/pipelines_bundle';
import '~/breakpoints';
import '~/lib/utils/common_utils';
import '~/diff';
......
/* eslint-disable space-before-function-paren, no-unused-expressions, no-return-assign, no-param-reassign, no-var, new-cap, wrap-iife, no-unused-vars, quotes, jasmine/no-expect-in-setup-teardown, max-len */
/* global Project */
import 'select2/select2.js';
import 'select2/select2';
import '~/gl_dropdown';
import '~/api';
import '~/project_select';
......
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