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