Merge branch 'leipert-eslint-report-unused-directives' into 'master'
Use eslint to find unused directives See merge request gitlab-org/gitlab-ce!19940
This commit is contained in:
commit
27dea9aa24
100 changed files with 105 additions and 130 deletions
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable no-param-reassign, class-methods-use-this */
|
||||
/* eslint-disable class-methods-use-this */
|
||||
|
||||
import $ from 'jquery';
|
||||
import Cookies from 'js-cookie';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable no-param-reassign, prefer-template, no-var, no-void, consistent-return */
|
||||
/* eslint-disable no-param-reassign, prefer-template, no-void, consistent-return */
|
||||
|
||||
import AccessorUtilities from './lib/utils/accessor';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable class-methods-use-this, object-shorthand, no-unused-vars, no-use-before-define, no-new, max-len, no-restricted-syntax, guard-for-in, no-continue */
|
||||
/* eslint-disable object-shorthand, no-unused-vars, no-use-before-define, max-len, no-restricted-syntax, guard-for-in, no-continue */
|
||||
|
||||
import $ from 'jquery';
|
||||
import _ from 'underscore';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* eslint-disable no-new */
|
||||
import Vue from 'vue';
|
||||
import pdfLab from '../../pdf/index.vue';
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, prefer-arrow-callback, no-var, quotes, vars-on-top, no-unused-vars, no-new, max-len */
|
||||
/* global EditBlob */
|
||||
/* eslint-disable no-new */
|
||||
|
||||
import $ from 'jquery';
|
||||
import NewCommitForm from '../new_commit_form';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable comma-dangle, space-before-function-paren, one-var */
|
||||
/* eslint-disable comma-dangle */
|
||||
|
||||
import Sortable from 'sortablejs';
|
||||
import Vue from 'vue';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable comma-dangle, space-before-function-paren, no-alert */
|
||||
/* eslint-disable comma-dangle, no-alert */
|
||||
|
||||
import $ from 'jquery';
|
||||
import Vue from 'vue';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable comma-dangle, space-before-function-paren, no-new */
|
||||
/* eslint-disable comma-dangle, no-new */
|
||||
|
||||
import $ from 'jquery';
|
||||
import Vue from 'vue';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, no-new, space-before-function-paren, one-var, promise/catch-or-return, max-len */
|
||||
/* eslint-disable func-names, no-new, promise/catch-or-return */
|
||||
|
||||
import $ from 'jquery';
|
||||
import axios from '~/lib/utils/axios_utils';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* eslint-disable class-methods-use-this */
|
||||
import FilteredSearchContainer from '../filtered_search/container';
|
||||
import FilteredSearchManager from '../filtered_search/filtered_search_manager';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable one-var, quote-props, comma-dangle, space-before-function-paren */
|
||||
/* eslint-disable quote-props, comma-dangle */
|
||||
|
||||
import $ from 'jquery';
|
||||
import _ from 'underscore';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* eslint-disable no-unused-vars, no-mixed-operators, comma-dangle */
|
||||
/* global DocumentTouch */
|
||||
|
||||
import $ from 'jquery';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable no-unused-vars, space-before-function-paren, arrow-body-style, arrow-parens, comma-dangle, max-len */
|
||||
/* eslint-disable no-unused-vars, comma-dangle */
|
||||
/* global ListLabel */
|
||||
/* global ListMilestone */
|
||||
/* global ListAssignee */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable space-before-function-paren, no-underscore-dangle, class-methods-use-this, consistent-return, no-shadow, no-param-reassign, max-len, no-unused-vars */
|
||||
/* eslint-disable no-underscore-dangle, class-methods-use-this, consistent-return, no-shadow, no-param-reassign, max-len */
|
||||
/* global ListIssue */
|
||||
|
||||
import ListLabel from '~/vue_shared/models/label';
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-disable no-unused-vars */
|
||||
|
||||
class ListMilestone {
|
||||
constructor(obj) {
|
||||
this.id = obj.id;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable comma-dangle, space-before-function-paren, one-var, no-shadow, dot-notation, max-len */
|
||||
/* eslint-disable comma-dangle, no-shadow */
|
||||
/* global List */
|
||||
|
||||
import $ from 'jquery';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, prefer-arrow-callback, no-return-assign */
|
||||
/* eslint-disable func-names, prefer-arrow-callback */
|
||||
|
||||
import $ from 'jquery';
|
||||
import { visitUrl } from './lib/utils/url_utility';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, no-use-before-define, prefer-arrow-callback, no-else-return, consistent-return, prefer-template, quotes, one-var, one-var-declaration-per-line, no-unused-vars, no-return-assign, comma-dangle, quote-props, no-unused-expressions, no-sequences, object-shorthand, max-len */
|
||||
/* eslint-disable func-names, wrap-iife, no-var, prefer-arrow-callback, no-else-return, consistent-return, prefer-template, quotes, one-var, one-var-declaration-per-line, no-unused-vars, no-return-assign, comma-dangle, quote-props, no-unused-expressions, no-sequences, max-len */
|
||||
|
||||
import $ from 'jquery';
|
||||
|
||||
|
@ -95,7 +95,7 @@ export default class ImageFile {
|
|||
});
|
||||
return [maxWidth, maxHeight];
|
||||
}
|
||||
// eslint-disable-next-line
|
||||
|
||||
views = {
|
||||
'two-up': function() {
|
||||
return $('.two-up.view .wrap', this.file).each((function(_this) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, one-var, no-var, one-var-declaration-per-line, object-shorthand, comma-dangle, prefer-arrow-callback, no-else-return, newline-per-chained-call, wrap-iife, max-len */
|
||||
/* eslint-disable func-names, one-var, no-var, one-var-declaration-per-line, object-shorthand, no-else-return, max-len */
|
||||
|
||||
import $ from 'jquery';
|
||||
import { __ } from './locale';
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
/* eslint-disable comma-dangle, object-shorthand, func-names, no-else-return, guard-for-in, no-restricted-syntax, one-var, space-before-function-paren, no-lonely-if, no-continue, brace-style, max-len, quotes */
|
||||
/* global DiscussionMixins */
|
||||
/* eslint-disable comma-dangle, object-shorthand, func-names, no-else-return, guard-for-in, no-restricted-syntax, no-lonely-if, no-continue, brace-style, max-len, quotes */
|
||||
/* global CommentsStore */
|
||||
|
||||
import $ from 'jquery';
|
||||
import Vue from 'vue';
|
||||
|
||||
import '../mixins/discussion';
|
||||
import DiscussionMixins from '../mixins/discussion';
|
||||
|
||||
const JumpToDiscussion = Vue.extend({
|
||||
mixins: [DiscussionMixins],
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
/* eslint-disable comma-dangle, object-shorthand, func-names, no-param-reassign */
|
||||
/* global DiscussionMixins */
|
||||
/* eslint-disable comma-dangle, object-shorthand, func-names */
|
||||
/* global CommentsStore */
|
||||
|
||||
import Vue from 'vue';
|
||||
|
||||
import '../mixins/discussion';
|
||||
import DiscussionMixins from '../mixins/discussion';
|
||||
|
||||
window.ResolveCount = Vue.extend({
|
||||
mixins: [DiscussionMixins],
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable object-shorthand, func-names, space-before-function-paren, comma-dangle, no-else-return, quotes, max-len */
|
||||
/* eslint-disable object-shorthand, func-names, comma-dangle, no-else-return, quotes */
|
||||
/* global CommentsStore */
|
||||
/* global ResolveService */
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, comma-dangle, new-cap, no-new, max-len */
|
||||
/* eslint-disable func-names, comma-dangle, new-cap, no-new */
|
||||
/* global ResolveCount */
|
||||
|
||||
import $ from 'jquery';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* eslint-disable object-shorthand, func-names, guard-for-in, no-restricted-syntax, comma-dangle, no-param-reassign, max-len */
|
||||
/* eslint-disable object-shorthand, func-names, guard-for-in, no-restricted-syntax, comma-dangle, */
|
||||
|
||||
window.DiscussionMixins = {
|
||||
const DiscussionMixins = {
|
||||
computed: {
|
||||
discussionCount: function () {
|
||||
return Object.keys(this.discussions).length;
|
||||
|
@ -33,3 +33,5 @@ window.DiscussionMixins = {
|
|||
}
|
||||
}
|
||||
};
|
||||
|
||||
export default DiscussionMixins;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable space-before-function-paren, camelcase, guard-for-in, no-restricted-syntax, no-unused-vars, max-len */
|
||||
/* eslint-disable camelcase, guard-for-in, no-restricted-syntax */
|
||||
/* global NoteModel */
|
||||
|
||||
import $ from 'jquery';
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-disable camelcase, no-unused-vars */
|
||||
|
||||
class NoteModel {
|
||||
constructor(discussionId, noteObj) {
|
||||
this.discussionId = discussionId;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable object-shorthand, func-names, camelcase, no-restricted-syntax, guard-for-in, comma-dangle, max-len, no-param-reassign */
|
||||
/* eslint-disable object-shorthand, func-names, camelcase, no-restricted-syntax, guard-for-in, comma-dangle, max-len */
|
||||
/* global DiscussionModel */
|
||||
|
||||
import Vue from 'vue';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-arrow-callback, wrap-iife, no-shadow, consistent-return, one-var, one-var-declaration-per-line, camelcase, default-case, no-new, quotes, no-duplicate-case, no-case-declarations, no-fallthrough, max-len */
|
||||
/* eslint-disable consistent-return, no-new */
|
||||
|
||||
import $ from 'jquery';
|
||||
import Flash from './flash';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, no-underscore-dangle, space-before-function-paren, no-var, one-var, one-var-declaration-per-line, prefer-rest-params, max-len, vars-on-top, wrap-iife, no-unused-vars, quotes, no-shadow, no-cond-assign, prefer-arrow-callback, no-return-assign, no-else-return, camelcase, comma-dangle, no-lonely-if, guard-for-in, no-restricted-syntax, consistent-return, prefer-template, no-param-reassign, no-loop-func, no-mixed-operators */
|
||||
/* eslint-disable func-names, no-underscore-dangle, no-var, one-var, one-var-declaration-per-line, max-len, vars-on-top, wrap-iife, no-unused-vars, quotes, no-shadow, no-cond-assign, prefer-arrow-callback, no-return-assign, no-else-return, camelcase, comma-dangle, no-lonely-if, guard-for-in, no-restricted-syntax, consistent-return, prefer-template, no-param-reassign, no-loop-func */
|
||||
/* global fuzzaldrinPlus */
|
||||
|
||||
import $ from 'jquery';
|
||||
|
|
|
@ -148,7 +148,6 @@ export default {
|
|||
if (!parentGroup.isOpen) {
|
||||
if (parentGroup.children.length === 0) {
|
||||
parentGroup.isChildrenLoading = true;
|
||||
// eslint-disable-next-line promise/catch-or-return
|
||||
this.fetchGroups({
|
||||
parentId: parentGroup.id,
|
||||
})
|
||||
|
|
|
@ -91,7 +91,6 @@ export default class IntegrationSettingsForm {
|
|||
}
|
||||
}
|
||||
|
||||
/* eslint-disable promise/catch-or-return, no-new */
|
||||
/**
|
||||
* Test Integration config
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable comma-dangle, quotes, consistent-return, func-names, array-callback-return, space-before-function-paren, prefer-arrow-callback, max-len, no-unused-expressions, no-sequences, no-underscore-dangle, no-unused-vars, no-param-reassign */
|
||||
/* eslint-disable comma-dangle, quotes, consistent-return, func-names, array-callback-return, prefer-arrow-callback, max-len, no-unused-vars */
|
||||
|
||||
import $ from 'jquery';
|
||||
import _ from 'underscore';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, prefer-rest-params, wrap-iife, no-use-before-define, no-useless-escape, no-new, object-shorthand, no-unused-vars, comma-dangle, no-alert, consistent-return, no-else-return, prefer-template, one-var, one-var-declaration-per-line, curly, max-len */
|
||||
/* eslint-disable no-new, no-unused-vars, consistent-return, no-else-return */
|
||||
/* global GitLab */
|
||||
|
||||
import $ from 'jquery';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, one-var, no-underscore-dangle, one-var-declaration-per-line, object-shorthand, no-unused-vars, no-new, comma-dangle, consistent-return, quotes, dot-notation, quote-props, prefer-arrow-callback, max-len */
|
||||
/* eslint-disable no-var, one-var, one-var-declaration-per-line, no-unused-vars, consistent-return, quotes, max-len */
|
||||
|
||||
import $ from 'jquery';
|
||||
import axios from './lib/utils/axios_utils';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable comma-dangle, class-methods-use-this, no-underscore-dangle, no-param-reassign, no-unused-vars, consistent-return, func-names, space-before-function-paren, max-len */
|
||||
/* eslint-disable class-methods-use-this, no-underscore-dangle, no-param-reassign, no-unused-vars, func-names, max-len */
|
||||
|
||||
import $ from 'jquery';
|
||||
import Sortable from 'sortablejs';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable no-useless-return, func-names, space-before-function-paren, wrap-iife, no-var, no-underscore-dangle, prefer-arrow-callback, max-len, one-var, no-unused-vars, one-var-declaration-per-line, prefer-template, no-new, consistent-return, object-shorthand, comma-dangle, no-shadow, no-param-reassign, brace-style, vars-on-top, quotes, no-lonely-if, no-else-return, dot-notation, no-empty, no-return-assign, camelcase, prefer-spread */
|
||||
/* eslint-disable no-useless-return, func-names, no-var, no-underscore-dangle, prefer-arrow-callback, max-len, one-var, no-unused-vars, one-var-declaration-per-line, prefer-template, no-new, consistent-return, object-shorthand, comma-dangle, no-shadow, no-param-reassign, brace-style, vars-on-top, quotes, no-lonely-if, no-else-return, dot-notation, no-empty */
|
||||
/* global Issuable */
|
||||
/* global ListLabel */
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, one-var, one-var-declaration-per-line, consistent-return, prefer-arrow-callback, no-return-assign, object-shorthand, comma-dangle, no-param-reassign, max-len */
|
||||
/* eslint-disable func-names, no-var, consistent-return, prefer-arrow-callback, no-return-assign, object-shorthand, comma-dangle, max-len */
|
||||
|
||||
function notificationGranted(message, opts, onclick) {
|
||||
var notification;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable import/prefer-default-export, func-names, space-before-function-paren, wrap-iife, no-var, no-param-reassign, no-cond-assign, quotes, one-var, one-var-declaration-per-line, operator-assignment, no-else-return, prefer-template, prefer-arrow-callback, no-empty, max-len, consistent-return, no-unused-vars, no-return-assign, max-len, vars-on-top */
|
||||
/* eslint-disable func-names, no-var, no-param-reassign, quotes, one-var, one-var-declaration-per-line, operator-assignment, no-else-return, prefer-template, prefer-arrow-callback, max-len, consistent-return, no-unused-vars, max-len */
|
||||
import $ from 'jquery';
|
||||
import { insertText } from '~/lib/utils/common_utils';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, no-use-before-define, no-underscore-dangle, no-param-reassign, prefer-template, quotes, comma-dangle, prefer-arrow-callback, consistent-return, one-var, one-var-declaration-per-line, no-else-return, max-len */
|
||||
/* eslint-disable func-names, no-var, no-underscore-dangle, no-param-reassign, prefer-template, quotes, comma-dangle, consistent-return, one-var, one-var-declaration-per-line, no-else-return, max-len */
|
||||
|
||||
import $ from 'jquery';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable comma-dangle, quote-props, no-useless-computed-key, object-shorthand, no-new, no-param-reassign, max-len */
|
||||
/* eslint-disable comma-dangle, quote-props, no-useless-computed-key, object-shorthand, no-param-reassign, max-len */
|
||||
/* global ace */
|
||||
|
||||
import Vue from 'vue';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable no-param-reassign, comma-dangle */
|
||||
/* eslint-disable no-param-reassign */
|
||||
|
||||
import Vue from 'vue';
|
||||
import actionsMixin from '../mixins/line_conflict_actions';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, quotes, no-underscore-dangle, one-var, one-var-declaration-per-line, consistent-return, dot-notation, quote-props, comma-dangle, object-shorthand, max-len, prefer-arrow-callback */
|
||||
/* eslint-disable func-names, no-var, wrap-iife, quotes, no-underscore-dangle, one-var, one-var-declaration-per-line, consistent-return, comma-dangle, max-len, prefer-arrow-callback */
|
||||
|
||||
import $ from 'jquery';
|
||||
import { __ } from '~/locale';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-underscore-dangle, prefer-arrow-callback, max-len, one-var, one-var-declaration-per-line, no-unused-vars, object-shorthand, comma-dangle, no-else-return, no-self-compare, consistent-return, no-param-reassign, no-shadow */
|
||||
/* eslint-disable max-len, one-var, one-var-declaration-per-line, no-unused-vars, object-shorthand, no-else-return, no-self-compare, consistent-return, no-param-reassign, no-shadow */
|
||||
/* global Issuable */
|
||||
/* global ListMilestone */
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, no-var, comma-dangle, object-shorthand, no-else-return, prefer-template, quotes, prefer-arrow-callback, max-len */
|
||||
/* eslint-disable func-names, comma-dangle, object-shorthand, no-else-return, prefer-template, quotes, prefer-arrow-callback, max-len */
|
||||
|
||||
import $ from 'jquery';
|
||||
import Api from './api';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, no-var, wrap-iife, quotes, comma-dangle, one-var, one-var-declaration-per-line, no-mixed-operators, no-loop-func, no-floating-decimal, consistent-return, no-unused-vars, prefer-template, prefer-arrow-callback, camelcase, max-len */
|
||||
/* eslint-disable func-names, no-var, wrap-iife, quotes, comma-dangle, one-var, one-var-declaration-per-line, no-loop-func, no-floating-decimal, consistent-return, no-unused-vars, prefer-template, prefer-arrow-callback, camelcase, max-len */
|
||||
|
||||
import $ from 'jquery';
|
||||
import { __ } from '../locale';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, no-var, one-var, prefer-rest-params, max-len, vars-on-top, wrap-iife, consistent-return, comma-dangle, one-var-declaration-per-line, quotes, no-return-assign, prefer-arrow-callback, prefer-template, no-shadow, no-else-return, max-len, object-shorthand */
|
||||
/* eslint-disable func-names, no-var, one-var, max-len, wrap-iife, consistent-return, comma-dangle, one-var-declaration-per-line, quotes, no-return-assign, prefer-arrow-callback, prefer-template, no-shadow, no-else-return, max-len */
|
||||
|
||||
import $ from 'jquery';
|
||||
import RefSelectDropdown from './ref_select_dropdown';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, no-return-assign, max-len */
|
||||
/* eslint-disable no-var, no-return-assign */
|
||||
export default class NewCommitForm {
|
||||
constructor(form) {
|
||||
this.form = form;
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
/* eslint-disable no-restricted-properties, func-names, space-before-function-paren,
|
||||
no-var, prefer-rest-params, wrap-iife, no-use-before-define, camelcase,
|
||||
no-unused-expressions, quotes, max-len, one-var, one-var-declaration-per-line,
|
||||
default-case, prefer-template, consistent-return, no-alert, no-return-assign,
|
||||
no-param-reassign, prefer-arrow-callback, no-else-return, comma-dangle, no-new,
|
||||
brace-style, no-lonely-if, vars-on-top, no-unused-vars, no-sequences, no-shadow,
|
||||
newline-per-chained-call, no-useless-escape, class-methods-use-this */
|
||||
/* eslint-disable no-restricted-properties, func-names, no-var, wrap-iife, camelcase,
|
||||
no-unused-expressions, max-len, one-var, one-var-declaration-per-line, default-case,
|
||||
prefer-template, consistent-return, no-alert, no-return-assign,
|
||||
no-param-reassign, prefer-arrow-callback, no-else-return, vars-on-top,
|
||||
no-unused-vars, no-shadow, no-useless-escape, class-methods-use-this */
|
||||
|
||||
/* global ResolveService */
|
||||
/* global mrRefreshWidgetUrl */
|
||||
|
@ -784,6 +782,7 @@ export default class Notes {
|
|||
}
|
||||
|
||||
updateNoteError($parentTimeline) {
|
||||
// eslint-disable-next-line no-new
|
||||
new Flash(
|
||||
'Your comment could not be updated! Please check your network connection and try again.',
|
||||
);
|
||||
|
@ -1411,8 +1410,8 @@ export default class Notes {
|
|||
|
||||
static renderPlaceholderComponent($container) {
|
||||
const el = $container.find('.js-code-placeholder').get(0);
|
||||
// eslint-disable-next-line no-new
|
||||
new Vue({
|
||||
// eslint-disable-line no-new
|
||||
el,
|
||||
components: {
|
||||
SkeletonLoadingContainer,
|
||||
|
@ -1827,7 +1826,6 @@ export default class Notes {
|
|||
|
||||
$closeBtn.text($closeBtn.data('originalText'));
|
||||
|
||||
/* eslint-disable promise/catch-or-return */
|
||||
// Make request to submit comment on server
|
||||
return axios
|
||||
.post(`${formAction}?html=true`, formData)
|
||||
|
@ -1989,7 +1987,6 @@ export default class Notes {
|
|||
'<i class="fa fa-spinner fa-spin" aria-label="Comment is being updated" aria-hidden="true"></i>',
|
||||
);
|
||||
|
||||
/* eslint-disable promise/catch-or-return */
|
||||
// Make request to update comment on server
|
||||
axios
|
||||
.post(`${formAction}?html=true`, formData)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable class-methods-use-this, no-unneeded-ternary, quote-props */
|
||||
/* eslint-disable class-methods-use-this, no-unneeded-ternary */
|
||||
|
||||
import $ from 'jquery';
|
||||
import { visitUrl } from '~/lib/utils/url_utility';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, one-var, camelcase, one-var-declaration-per-line, quotes, no-param-reassign, quote-props, comma-dangle, prefer-template, max-len, no-return-assign, no-shadow */
|
||||
/* eslint-disable func-names, wrap-iife, no-var, one-var, camelcase, one-var-declaration-per-line, quotes, no-param-reassign, quote-props, comma-dangle, prefer-template, max-len, no-return-assign */
|
||||
|
||||
import $ from 'jquery';
|
||||
import _ from 'underscore';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, prefer-rest-params, max-len, no-restricted-syntax, vars-on-top, no-use-before-define, no-param-reassign, new-cap, no-underscore-dangle, wrap-iife, comma-dangle, no-return-assign, prefer-arrow-callback, quotes, prefer-template, newline-per-chained-call, no-else-return, no-shadow */
|
||||
/* eslint-disable func-names, max-len, no-restricted-syntax, no-use-before-define, no-param-reassign, new-cap, no-underscore-dangle, wrap-iife, comma-dangle, no-return-assign, prefer-arrow-callback, quotes, prefer-template, newline-per-chained-call, no-else-return, no-shadow */
|
||||
|
||||
import $ from 'jquery';
|
||||
import _ from 'underscore';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, object-shorthand, no-var, one-var, camelcase, one-var-declaration-per-line, comma-dangle, no-param-reassign, no-return-assign, quotes, prefer-arrow-callback, wrap-iife, consistent-return, no-unused-vars, max-len, no-cond-assign, no-else-return, max-len */
|
||||
/* eslint-disable func-names, object-shorthand, no-var, one-var, camelcase, one-var-declaration-per-line, comma-dangle, no-param-reassign, no-return-assign, quotes, prefer-arrow-callback, wrap-iife, consistent-return, no-unused-vars, max-len, no-cond-assign, no-else-return, max-len */
|
||||
import _ from 'underscore';
|
||||
|
||||
export default {
|
||||
|
|
|
@ -8,7 +8,8 @@ import initBlobBundle from '~/blob_edit/blob_bundle';
|
|||
export default () => {
|
||||
new LineHighlighter(); // eslint-disable-line no-new
|
||||
|
||||
new BlobLinePermalinkUpdater( // eslint-disable-line no-new
|
||||
// eslint-disable-next-line no-new
|
||||
new BlobLinePermalinkUpdater(
|
||||
document.querySelector('#blob-content-holder'),
|
||||
'.diff-line-num[data-line-number]',
|
||||
document.querySelectorAll('.js-data-file-blob-permalink-url, .js-blob-blame-link'),
|
||||
|
@ -19,12 +20,13 @@ export default () => {
|
|||
|
||||
new ShortcutsNavigation(); // eslint-disable-line no-new
|
||||
|
||||
new ShortcutsBlob({ // eslint-disable-line no-new
|
||||
// eslint-disable-next-line no-new
|
||||
new ShortcutsBlob({
|
||||
skipResetBindings: true,
|
||||
fileBlobPermalinkUrl,
|
||||
});
|
||||
|
||||
new BlobForkSuggestion({ // eslint-disable-line no-new
|
||||
new BlobForkSuggestion({
|
||||
openButtons: document.querySelectorAll('.js-edit-blob-link-fork-toggler'),
|
||||
forkButtons: document.querySelectorAll('.js-fork-suggestion-button'),
|
||||
cancelButtons: document.querySelectorAll('.js-cancel-fork-suggestion-button'),
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, quotes, quote-props, prefer-template, comma-dangle, max-len */
|
||||
/* eslint-disable func-names, wrap-iife, no-var, quotes, quote-props, prefer-template, comma-dangle, max-len */
|
||||
|
||||
import $ from 'jquery';
|
||||
import BranchGraph from '../../../network/branch_graph';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, no-var, consistent-return, no-new, prefer-arrow-callback, no-return-assign, one-var, one-var-declaration-per-line, object-shorthand, no-else-return, newline-per-chained-call, no-shadow, vars-on-top, prefer-template, max-len */
|
||||
/* eslint-disable func-names, no-var, no-return-assign, one-var,
|
||||
one-var-declaration-per-line, object-shorthand, vars-on-top */
|
||||
|
||||
import $ from 'jquery';
|
||||
import Cookies from 'js-cookie';
|
||||
|
|
|
@ -13,7 +13,7 @@ export default () => {
|
|||
new ProtectedTagEditList();
|
||||
initDeployKeys();
|
||||
initSettingsPanels();
|
||||
new ProtectedBranchCreate(); // eslint-disable-line no-new
|
||||
new ProtectedBranchEditList(); // eslint-disable-line no-new
|
||||
new ProtectedBranchCreate();
|
||||
new ProtectedBranchEditList();
|
||||
new DueDateSelectors();
|
||||
};
|
||||
|
|
|
@ -6,7 +6,8 @@ import OAuthRememberMe from './oauth_remember_me';
|
|||
document.addEventListener('DOMContentLoaded', () => {
|
||||
new UsernameValidator(); // eslint-disable-line no-new
|
||||
new SigninTabsMemoizer(); // eslint-disable-line no-new
|
||||
new OAuthRememberMe({ // eslint-disable-line no-new
|
||||
|
||||
new OAuthRememberMe({
|
||||
container: $('.omniauth-container'),
|
||||
}).bindEvents();
|
||||
});
|
||||
|
|
|
@ -17,7 +17,6 @@ export default class OAuthRememberMe {
|
|||
$('#remember_me', this.container).on('click', this.toggleRememberMe);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line class-methods-use-this
|
||||
toggleRememberMe(event) {
|
||||
const rememberMe = $(event.target).is(':checked');
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable comma-dangle, consistent-return, class-methods-use-this, arrow-parens, no-param-reassign, max-len */
|
||||
/* eslint-disable comma-dangle, consistent-return, class-methods-use-this */
|
||||
|
||||
import $ from 'jquery';
|
||||
import _ from 'underscore';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, no-var, object-shorthand, comma-dangle, prefer-arrow-callback */
|
||||
/* eslint-disable func-names, no-var, object-shorthand, prefer-arrow-callback */
|
||||
|
||||
import $ from 'jquery';
|
||||
import axios from '~/lib/utils/axios_utils';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable no-useless-escape, max-len, quotes, no-var, no-underscore-dangle, func-names, space-before-function-paren, no-unused-vars, no-return-assign, object-shorthand, one-var, one-var-declaration-per-line, comma-dangle, consistent-return, class-methods-use-this, new-parens */
|
||||
/* eslint-disable no-useless-escape, max-len, no-var, no-underscore-dangle, func-names, no-unused-vars, no-return-assign, object-shorthand, one-var, one-var-declaration-per-line, comma-dangle, consistent-return, class-methods-use-this, new-parens */
|
||||
|
||||
import $ from 'jquery';
|
||||
import 'cropper';
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
/* eslint-disable comma-dangle, no-unused-vars, class-methods-use-this, quotes, consistent-return, func-names, prefer-arrow-callback, space-before-function-paren, max-len */
|
||||
|
||||
import $ from 'jquery';
|
||||
import axios from '~/lib/utils/axios_utils';
|
||||
import { __ } from '~/locale';
|
||||
import flash from '../flash';
|
||||
|
||||
export default class Profile {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, quotes, consistent-return, one-var, one-var-declaration-per-line, no-cond-assign, max-len, object-shorthand, no-param-reassign, comma-dangle, prefer-template, no-unused-vars, no-return-assign */
|
||||
/* eslint-disable func-names, no-var, wrap-iife, quotes, consistent-return, one-var, one-var-declaration-per-line, no-cond-assign, max-len, prefer-template, no-unused-vars, no-return-assign */
|
||||
|
||||
import $ from 'jquery';
|
||||
import fuzzaldrinPlus from 'fuzzaldrin-plus';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, wrap-iife, prefer-arrow-callback, no-var, comma-dangle, object-shorthand, one-var, one-var-declaration-per-line, no-else-return, quotes, max-len */
|
||||
/* eslint-disable func-names, wrap-iife, no-var, comma-dangle, object-shorthand, one-var, one-var-declaration-per-line, no-else-return, quotes, max-len */
|
||||
|
||||
import $ from 'jquery';
|
||||
import Api from './api';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, no-unused-vars, consistent-return, one-var, one-var-declaration-per-line, quotes, prefer-template, object-shorthand, comma-dangle, no-else-return, no-param-reassign, max-len */
|
||||
/* eslint-disable func-names, no-var, no-unused-vars, consistent-return, one-var, one-var-declaration-per-line, quotes, prefer-template, no-else-return, no-param-reassign, max-len */
|
||||
|
||||
import $ from 'jquery';
|
||||
import _ from 'underscore';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable no-return-assign, one-var, no-var, no-underscore-dangle, one-var-declaration-per-line, no-unused-vars, no-cond-assign, consistent-return, object-shorthand, prefer-arrow-callback, func-names, space-before-function-paren, prefer-template, quotes, class-methods-use-this, no-sequences, wrap-iife, no-lonely-if, no-else-return, no-param-reassign, vars-on-top, max-len */
|
||||
/* eslint-disable no-return-assign, one-var, no-var, no-underscore-dangle, one-var-declaration-per-line, no-unused-vars, consistent-return, object-shorthand, prefer-template, quotes, class-methods-use-this, no-lonely-if, no-else-return, vars-on-top, max-len */
|
||||
|
||||
import $ from 'jquery';
|
||||
import axios from './lib/utils/axios_utils';
|
||||
|
|
|
@ -75,7 +75,6 @@ function mountLockComponent(mediator) {
|
|||
function mountParticipantsComponent(mediator) {
|
||||
const el = document.querySelector('.js-sidebar-participants-entry-point');
|
||||
|
||||
// eslint-disable-next-line no-new
|
||||
if (!el) return;
|
||||
|
||||
// eslint-disable-next-line no-new
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, prefer-arrow-callback, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, one-var, one-var-declaration-per-line, consistent-return, no-param-reassign, max-len */
|
||||
/* eslint-disable func-names, prefer-arrow-callback, consistent-return, */
|
||||
|
||||
import $ from 'jquery';
|
||||
import { __ } from './locale';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, consistent-return, no-var, no-else-return, prefer-arrow-callback, max-len */
|
||||
/* eslint-disable consistent-return, no-else-return */
|
||||
|
||||
import $ from 'jquery';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, wrap-iife, max-len, quotes, consistent-return, no-var, one-var, one-var-declaration-per-line, no-else-return, prefer-arrow-callback, class-methods-use-this */
|
||||
/* eslint-disable func-names, max-len, quotes, consistent-return, no-var, one-var, one-var-declaration-per-line, no-else-return, prefer-arrow-callback, class-methods-use-this */
|
||||
|
||||
import $ from 'jquery';
|
||||
import { visitUrl } from './lib/utils/url_utility';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, one-var, no-var, prefer-rest-params, wrap-iife, quotes, max-len, one-var-declaration-per-line, vars-on-top, prefer-arrow-callback, consistent-return, comma-dangle, object-shorthand, no-shadow, no-unused-vars, no-else-return, no-self-compare, prefer-template, no-unused-expressions, no-lonely-if, yoda, prefer-spread, no-void, camelcase, no-param-reassign */
|
||||
/* eslint-disable func-names, one-var, no-var, prefer-rest-params, quotes, max-len, one-var-declaration-per-line, vars-on-top, prefer-arrow-callback, consistent-return, comma-dangle, object-shorthand, no-shadow, no-unused-vars, no-else-return, no-self-compare, prefer-template, no-unused-expressions, yoda, prefer-spread, no-void, camelcase, no-param-reassign */
|
||||
/* global Issuable */
|
||||
/* global emitSidebarEvent */
|
||||
|
||||
|
|
|
@ -172,7 +172,7 @@ export default {
|
|||
}
|
||||
})
|
||||
.catch(() => {
|
||||
createFlash('Something went wrong while fetching the environments for this merge request. Please try again.'); // eslint-disable-line
|
||||
createFlash('Something went wrong while fetching the environments for this merge request. Please try again.');
|
||||
});
|
||||
},
|
||||
fetchActionsContent() {
|
||||
|
|
|
@ -28,7 +28,7 @@ Vue.http.interceptors.push((request, next) => {
|
|||
response.headers.forEach((value, key) => {
|
||||
headers[key] = value;
|
||||
});
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
|
||||
response.headers = headers;
|
||||
});
|
||||
});
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, wrap-iife, prefer-arrow-callback, no-unused-vars, consistent-return, camelcase, comma-dangle, max-len, class-methods-use-this */
|
||||
/* eslint-disable func-names, wrap-iife, prefer-arrow-callback, no-unused-vars, consistent-return, camelcase, comma-dangle, max-len, class-methods-use-this */
|
||||
|
||||
// Zen Mode (full screen) textarea
|
||||
//
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
"scripts": {
|
||||
"clean": "rm -rf public/assets tmp/cache/*-loader",
|
||||
"dev-server": "nodemon -w 'config/webpack.config.js' --exec 'webpack-dev-server --config config/webpack.config.js'",
|
||||
"eslint": "eslint --max-warnings 0 --ext .js,.vue .",
|
||||
"eslint-fix": "eslint --max-warnings 0 --ext .js,.vue --fix .",
|
||||
"eslint": "eslint --max-warnings 0 --report-unused-disable-directives --ext .js,.vue .",
|
||||
"eslint-fix": "eslint --max-warnings 0 --report-unused-disable-directives --ext .js,.vue --fix .",
|
||||
"eslint-report": "eslint --max-warnings 0 --ext .js,.vue --format html --output-file ./eslint-report.html --no-inline-config .",
|
||||
"karma": "BABEL_ENV=${BABEL_ENV:=karma} karma start --single-run true config/karma.config.js",
|
||||
"karma-coverage": "BABEL_ENV=coverage karma start --single-run true config/karma.config.js",
|
||||
|
|
|
@ -32,3 +32,7 @@ rules:
|
|||
- branch
|
||||
no-console: off
|
||||
prefer-arrow-callback: off
|
||||
import/no-unresolved:
|
||||
- error
|
||||
- ignore:
|
||||
- 'fixtures/blob'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable no-unused-expressions, no-prototype-builtins, no-new, no-shadow, max-len */
|
||||
/* eslint-disable no-unused-expressions, no-prototype-builtins, no-new, no-shadow */
|
||||
|
||||
import $ from 'jquery';
|
||||
import 'vendor/jquery.endless-scroll';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable space-before-function-paren, no-var, one-var, one-var-declaration-per-line, no-unused-expressions, comma-dangle, new-parens, no-unused-vars, quotes, jasmine/no-spec-dupes, prefer-template, max-len */
|
||||
/* eslint-disable no-var, one-var, one-var-declaration-per-line, no-unused-expressions, comma-dangle, no-unused-vars, quotes, prefer-template, max-len */
|
||||
|
||||
import $ from 'jquery';
|
||||
import Cookies from 'js-cookie';
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-disable import/no-unresolved */
|
||||
|
||||
import BalsamiqViewer from '~/blob/balsamiq/balsamiq_viewer';
|
||||
import bmprPath from '../../fixtures/blob/balsamiq/test.bmpr';
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-disable import/no-unresolved */
|
||||
|
||||
import renderPDF from '~/blob/pdf';
|
||||
import testPDF from '../../fixtures/blob/pdf/test.pdf';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable comma-dangle, one-var, no-unused-vars */
|
||||
/* eslint-disable comma-dangle, no-unused-vars */
|
||||
/* global ListIssue */
|
||||
|
||||
import Vue from 'vue';
|
||||
|
|
2
spec/javascripts/bootstrap_jquery_spec.js
vendored
2
spec/javascripts/bootstrap_jquery_spec.js
vendored
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable space-before-function-paren, no-var */
|
||||
/* eslint-disable no-var */
|
||||
|
||||
import $ from 'jquery';
|
||||
import '~/commons/bootstrap';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable comma-dangle, no-param-reassign, no-unused-expressions, max-len */
|
||||
/* eslint-disable comma-dangle, no-param-reassign */
|
||||
|
||||
import $ from 'jquery';
|
||||
import GLDropdown from '~/gl_dropdown';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable space-before-function-paren, arrow-body-style */
|
||||
/* eslint-disable arrow-body-style */
|
||||
|
||||
import $ from 'jquery';
|
||||
import GlFieldErrors from '~/gl_field_errors';
|
||||
|
|
|
@ -5,7 +5,6 @@ export const headersInterceptor = (request, next) => {
|
|||
response.headers.forEach((value, key) => {
|
||||
headers[key] = value;
|
||||
});
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
response.headers = headers;
|
||||
});
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable no-unused-vars, space-before-function-paren, func-call-spacing, no-spaced-func, semi, max-len, quotes, space-infix-ops, padded-blocks */
|
||||
/* eslint-disable no-unused-vars, func-call-spacing, no-spaced-func, semi, quotes, space-infix-ops, max-len */
|
||||
|
||||
import $ from 'jquery';
|
||||
import Vue from 'vue';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable space-before-function-paren, one-var, one-var-declaration-per-line, no-use-before-define, comma-dangle, max-len */
|
||||
/* eslint-disable one-var, one-var-declaration-per-line, no-use-before-define, comma-dangle */
|
||||
|
||||
import $ from 'jquery';
|
||||
import MockAdapter from 'axios-mock-adapter';
|
||||
|
|
|
@ -304,7 +304,6 @@ describe('Job', () => {
|
|||
describe('getBuildTrace', () => {
|
||||
it('should request build trace with state parameter', (done) => {
|
||||
spyOn(axios, 'get').and.callThrough();
|
||||
// eslint-disable-next-line no-new
|
||||
job = new Job();
|
||||
|
||||
setTimeout(() => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable space-before-function-paren, no-var, no-param-reassign, quotes, prefer-template, no-else-return, new-cap, dot-notation, no-return-assign, comma-dangle, no-new, one-var, one-var-declaration-per-line, jasmine/no-spec-dupes, no-underscore-dangle, max-len */
|
||||
/* eslint-disable no-var, quotes, prefer-template, no-else-return, dot-notation, no-return-assign, comma-dangle, no-new, one-var, one-var-declaration-per-line, no-underscore-dangle, max-len */
|
||||
|
||||
import $ from 'jquery';
|
||||
import LineHighlighter from '~/line_highlighter';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable space-before-function-paren, no-return-assign */
|
||||
/* eslint-disable no-return-assign */
|
||||
|
||||
import $ from 'jquery';
|
||||
import MockAdapter from 'axios-mock-adapter';
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-disable no-new */
|
||||
|
||||
import $ from 'jquery';
|
||||
import MockAdapter from 'axios-mock-adapter';
|
||||
import axios from '~/lib/utils/axios_utils';
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-disable quote-props, indent, comma-dangle */
|
||||
|
||||
export const mockApiEndpoint = `${gl.TEST_HOST}/monitoring/mock`;
|
||||
|
||||
export const metricsGroupsAPIResponse = {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable space-before-function-paren, one-var, no-var, one-var-declaration-per-line, no-return-assign, quotes, max-len */
|
||||
/* eslint-disable one-var, no-var, one-var-declaration-per-line, no-return-assign, quotes, max-len */
|
||||
|
||||
import $ from 'jquery';
|
||||
import NewBranchForm from '~/new_branch_form';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable space-before-function-paren, no-unused-expressions, no-var, object-shorthand, comma-dangle, max-len */
|
||||
/* eslint-disable no-unused-expressions, no-var, object-shorthand */
|
||||
import $ from 'jquery';
|
||||
import _ from 'underscore';
|
||||
import MockAdapter from 'axios-mock-adapter';
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-disable import/no-unresolved */
|
||||
|
||||
import Vue from 'vue';
|
||||
import { PDFJS } from 'vendor/pdf';
|
||||
import workerSrc from 'vendor/pdf.worker.min';
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-disable import/no-unresolved */
|
||||
|
||||
import Vue from 'vue';
|
||||
import pdfjsLib from 'vendor/pdf';
|
||||
import workerSrc from 'vendor/pdf.worker.min';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable space-before-function-paren, no-var, one-var, one-var-declaration-per-line, new-parens, no-return-assign, new-cap, vars-on-top, max-len */
|
||||
/* eslint-disable no-var, one-var, one-var-declaration-per-line, no-return-assign, vars-on-top, max-len */
|
||||
|
||||
import $ from 'jquery';
|
||||
import MockAdapter from 'axios-mock-adapter';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable space-before-function-paren, max-len, no-var, one-var, one-var-declaration-per-line, no-unused-expressions, consistent-return, no-param-reassign, default-case, no-return-assign, comma-dangle, object-shorthand, prefer-template, quotes, new-parens, vars-on-top, new-cap, max-len */
|
||||
/* eslint-disable max-len, no-var, one-var, one-var-declaration-per-line, no-unused-expressions, consistent-return, no-param-reassign, default-case, no-return-assign, object-shorthand, prefer-template, vars-on-top, max-len */
|
||||
|
||||
import $ from 'jquery';
|
||||
import '~/gl_dropdown';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable space-before-function-paren, no-var, no-return-assign, quotes */
|
||||
/* eslint-disable no-var, no-return-assign, quotes */
|
||||
|
||||
import $ from 'jquery';
|
||||
import syntaxHighlight from '~/syntax_highlight';
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/* eslint-disable prefer-rest-params, wrap-iife,
|
||||
no-unused-expressions, no-return-assign, no-param-reassign */
|
||||
/* eslint-disable wrap-iife, no-unused-expressions, no-return-assign, no-param-reassign */
|
||||
|
||||
export default class MockU2FDevice {
|
||||
constructor() {
|
||||
|
|
Loading…
Reference in a new issue