Commit c0eda684 authored by Brandon Labuschagne's avatar Brandon Labuschagne Committed by Mike Greiling

Disable unnecessary ESLint i18n offences

Unnecessary offences include false positives as well as flagged
errors which have follow up issues in order to be addressed.

Not all issues have been addressed before this being submitted
in the spirit of results and iteration.
parent 07848dc0
......@@ -4,6 +4,7 @@ export default {
if (!this.updateFilters) return;
const issueWeight = encodeURIComponent(weight);
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */
const filter = `weight=${issueWeight}`;
this.applyFilter(filter);
......
import actionsCE from '~/boards/stores/actions';
const notImplemented = () => {
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */
throw new Error('Not implemented!');
};
......
......@@ -83,6 +83,7 @@ class BoardsStoreEE {
let { milestoneTitle } = this.store.boardConfig;
if (this.store.boardConfig.milestoneId === 0) {
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */
milestoneTitle = 'No+Milestone';
} else {
milestoneTitle = encodeURIComponent(milestoneTitle);
......@@ -95,6 +96,7 @@ class BoardsStoreEE {
let { weight } = this.store.boardConfig;
if (weight !== -1) {
if (weight === 0) {
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */
weight = 'No+Weight';
}
updateFilterPath('weight', weight);
......
import * as mutationTypes from './mutation_types';
const notImplemented = () => {
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */
throw new Error('Not implemented!');
};
......
/* eslint-disable @gitlab/i18n/no-non-i18n-strings */
import { createTwoFilesPatch } from 'diff';
import { commitActionTypes } from '~/ide/constants';
......
......@@ -197,6 +197,7 @@ const GUIDED_GITLAB_TOUR = [
{
text: s__('UserOnboardingTour|Ok, show me'),
btnClass: 'btn-primary',
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings
redirectPath: `issues?${LABEL_SEARCH_QUERY}`,
},
],
......
import { s__ } from '~/locale';
export const ChildType = {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings
Epic: 'Epic',
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings
Issue: 'Issue',
};
......
......@@ -56,11 +56,13 @@ export default {
} else if (startDate === 1) {
// If Epic startDate is first day of the month
// Set offset to 0.
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */
return 'left: 0;';
}
// Calculate proportional offset based on startDate and total days in
// current month.
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */
return `left: ${(startDate / daysInMonth) * 100}%;`;
},
/**
......
......@@ -55,9 +55,11 @@ export default {
) {
return '';
} else if (startDay === 1) {
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */
return 'left: 0;';
}
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */
return `left: ${(startDay / daysInQuarter) * 100}%;`;
},
/**
......
......@@ -65,9 +65,11 @@ export default {
) {
return '';
} else if (startDate === firstDayOfWeek) {
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */
return 'left: 0;';
}
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */
return `left: ${startDate * dayWidth - dayWidth / 2}px;`;
},
/**
......
/* eslint-disable @gitlab/i18n/no-non-i18n-strings */
export const LICENSE_APPROVAL_STATUS = {
APPROVED: 'approved',
BLACKLISTED: 'blacklisted',
......
......@@ -77,8 +77,10 @@ export const formatContainerScanningSolution = ({ fixedby, featurename, featurev
};
export const parseContainerScanningSeverity = severity => {
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */
if (severity === 'Defcon1') {
return SEVERITY_LEVELS.critical;
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */
} else if (severity === 'Negligible') {
return SEVERITY_LEVELS.low;
}
......@@ -114,6 +116,7 @@ export const parseSastContainer = (issues = [], feedback = [], image) =>
image,
operating_system: issue.namespace,
},
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */
scanner: { id: 'clair', name: 'Clair' },
identifiers: [
{
......
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