Commit 45ab3633 authored by Mark Florian's avatar Mark Florian

Merge branch 'leipert-gitlab-eslint-plugin' into 'master'

Migrate to @gitlab/eslint-plugin

See merge request gitlab-org/gitlab!27415
parents 72dc92af 63d42885
extends: extends:
- '@gitlab' - plugin:@gitlab/default
- plugin:promise/recommended - plugin:@gitlab/i18n
- plugin:no-jquery/slim - plugin:no-jquery/slim
- plugin:no-jquery/deprecated-3.4 - plugin:no-jquery/deprecated-3.4
globals: globals:
...@@ -16,9 +16,6 @@ settings: ...@@ -16,9 +16,6 @@ settings:
webpack: webpack:
config: './config/webpack.config.js' config: './config/webpack.config.js'
rules: rules:
"@gitlab/i18n/no-non-i18n-strings": error
"@gitlab/vue-i18n/no-bare-strings": error
"@gitlab/vue-i18n/no-bare-attribute-strings": error
import/no-commonjs: error import/no-commonjs: error
no-underscore-dangle: no-underscore-dangle:
- error - error
...@@ -54,4 +51,4 @@ overrides: ...@@ -54,4 +51,4 @@ overrides:
- files: - files:
- '**/spec/**/*' - '**/spec/**/*'
rules: rules:
"@gitlab/i18n/no-non-i18n-strings": off "@gitlab/require-i18n-strings": off
/* eslint-disable class-methods-use-this, @gitlab/i18n/no-non-i18n-strings */ /* eslint-disable class-methods-use-this, @gitlab/require-i18n-strings */
import $ from 'jquery'; import $ from 'jquery';
import _ from 'underscore'; import _ from 'underscore';
......
...@@ -4,7 +4,7 @@ import Icon from '~/vue_shared/components/icon.vue'; ...@@ -4,7 +4,7 @@ import Icon from '~/vue_shared/components/icon.vue';
export default { export default {
// name: 'Badge' is a false positive: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/25 // name: 'Badge' is a false positive: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/25
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
name: 'Badge', name: 'Badge',
components: { components: {
Icon, Icon,
......
/* eslint-disable class-methods-use-this */ /* eslint-disable class-methods-use-this */
/* eslint-disable @gitlab/i18n/no-non-i18n-strings */ /* eslint-disable @gitlab/require-i18n-strings */
import { Node } from 'tiptap'; import { Node } from 'tiptap';
import { defaultMarkdownSerializer } from 'prosemirror-markdown'; import { defaultMarkdownSerializer } from 'prosemirror-markdown';
......
...@@ -36,6 +36,7 @@ export default Vue.extend({ ...@@ -36,6 +36,7 @@ export default Vue.extend({
list: { list: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
disabled: { disabled: {
type: Boolean, type: Boolean,
...@@ -94,7 +95,7 @@ export default Vue.extend({ ...@@ -94,7 +95,7 @@ export default Vue.extend({
return this.list.type !== ListType.blank && this.list.type !== ListType.promotion; return this.list.type !== ListType.blank && this.list.type !== ListType.promotion;
}, },
uniqueKey() { uniqueKey() {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
return `boards.${this.boardId}.${this.list.type}.${this.list.id}`; return `boards.${this.boardId}.${this.list.type}.${this.list.id}`;
}, },
helpLink() { helpLink() {
......
...@@ -13,29 +13,36 @@ export default { ...@@ -13,29 +13,36 @@ export default {
list: { list: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
issue: { issue: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
issueLinkBase: { issueLinkBase: {
type: String, type: String,
default: '', default: '',
required: false,
}, },
disabled: { disabled: {
type: Boolean, type: Boolean,
default: false, default: false,
required: false,
}, },
index: { index: {
type: Number, type: Number,
default: 0, default: 0,
required: false,
}, },
rootPath: { rootPath: {
type: String, type: String,
default: '', default: '',
required: false,
}, },
groupId: { groupId: {
type: Number, type: Number,
required: false,
}, },
}, },
data() { data() {
......
...@@ -7,6 +7,7 @@ export default Vue.extend({ ...@@ -7,6 +7,7 @@ export default Vue.extend({
list: { list: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
}, },
methods: { methods: {
......
...@@ -34,6 +34,7 @@ export default Vue.extend({ ...@@ -34,6 +34,7 @@ export default Vue.extend({
currentUser: { currentUser: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
}, },
data() { data() {
......
...@@ -43,6 +43,7 @@ export default { ...@@ -43,6 +43,7 @@ export default {
throttleDuration: { throttleDuration: {
type: Number, type: Number,
default: 200, default: 200,
required: false,
}, },
boardBaseUrl: { boardBaseUrl: {
type: String, type: String,
......
<script> <script>
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
import { __ } from '~/locale'; import { __ } from '~/locale';
import ModalFilters from './filters'; import ModalFilters from './filters';
import ModalTabs from './tabs.vue'; import ModalTabs from './tabs.vue';
......
<script> <script>
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
import ModalStore from '../../stores/modal_store'; import ModalStore from '../../stores/modal_store';
import modalMixin from '../../mixins/modal_mixins'; import modalMixin from '../../mixins/modal_mixins';
......
const notImplemented = () => { const notImplemented = () => {
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */ /* eslint-disable-next-line @gitlab/require-i18n-strings */
throw new Error('Not implemented!'); throw new Error('Not implemented!');
}; };
......
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 */ /* eslint-disable-next-line @gitlab/require-i18n-strings */
throw new Error('Not implemented!'); throw new Error('Not implemented!');
}; };
......
<script> <script>
/* eslint-disable vue/require-default-prop */ /* eslint-disable vue/require-default-prop */
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
import { GlLink, GlModalDirective } from '@gitlab/ui'; import { GlLink, GlModalDirective } from '@gitlab/ui';
import { s__, __, sprintf } from '~/locale'; import { s__, __, sprintf } from '~/locale';
import eventHub from '../event_hub'; import eventHub from '../event_hub';
...@@ -95,6 +95,7 @@ export default { ...@@ -95,6 +95,7 @@ export default {
updateable: { updateable: {
type: Boolean, type: Boolean,
default: true, default: true,
required: false,
}, },
updateSuccessful: { updateSuccessful: {
type: Boolean, type: Boolean,
......
...@@ -22,6 +22,7 @@ export default { ...@@ -22,6 +22,7 @@ export default {
ingressDnsHelpPath: { ingressDnsHelpPath: {
type: String, type: String,
default: '', default: '',
required: false,
}, },
}, },
computed: { computed: {
......
...@@ -13,10 +13,12 @@ export default { ...@@ -13,10 +13,12 @@ export default {
items: { items: {
type: Array, type: Array,
default: () => [], default: () => [],
required: false,
}, },
stage: { stage: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
}, },
}; };
......
...@@ -13,10 +13,12 @@ export default { ...@@ -13,10 +13,12 @@ export default {
items: { items: {
type: Array, type: Array,
default: () => [], default: () => [],
required: false,
}, },
stage: { stage: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
}, },
}; };
......
...@@ -15,10 +15,12 @@ export default { ...@@ -15,10 +15,12 @@ export default {
items: { items: {
type: Array, type: Array,
default: () => [], default: () => [],
required: false,
}, },
stage: { stage: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
}, },
}; };
......
...@@ -16,10 +16,12 @@ export default { ...@@ -16,10 +16,12 @@ export default {
items: { items: {
type: Array, type: Array,
default: () => [], default: () => [],
required: false,
}, },
stage: { stage: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
}, },
computed: { computed: {
......
...@@ -15,10 +15,12 @@ export default { ...@@ -15,10 +15,12 @@ export default {
items: { items: {
type: Array, type: Array,
default: () => [], default: () => [],
required: false,
}, },
stage: { stage: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
}, },
computed: { computed: {
......
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
}, },
authorUrl() { authorUrl() {
// name: 'mailto:' is a false positive: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26#possible-false-positives // name: 'mailto:' is a false positive: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26#possible-false-positives
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
return this.author.web_url || `mailto:${this.commit.author_email}`; return this.author.web_url || `mailto:${this.commit.author_email}`;
}, },
authorAvatar() { authorAvatar() {
......
<script> <script>
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
export default { export default {
props: { props: {
total: { total: {
......
<script> <script>
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
import _ from 'underscore'; import _ from 'underscore';
import { GlTooltipDirective } from '@gitlab/ui'; import { GlTooltipDirective } from '@gitlab/ui';
import { __, sprintf } from '~/locale'; import { __, sprintf } from '~/locale';
...@@ -342,7 +342,7 @@ export default { ...@@ -342,7 +342,7 @@ export default {
isLastDeployment() { isLastDeployment() {
// name: 'last?' is a false positive: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26#possible-false-positives // name: 'last?' is a false positive: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26#possible-false-positives
// Vue i18n ESLint rules issue: https://gitlab.com/gitlab-org/gitlab-foss/issues/63560 // Vue i18n ESLint rules issue: https://gitlab.com/gitlab-org/gitlab-foss/issues/63560
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
return this.model && this.model.last_deployment && this.model.last_deployment['last?']; return this.model && this.model.last_deployment && this.model.last_deployment['last?'];
}, },
......
...@@ -24,6 +24,7 @@ export default { ...@@ -24,6 +24,7 @@ export default {
isLastDeployment: { isLastDeployment: {
type: Boolean, type: Boolean,
default: true, default: true,
required: false,
}, },
environment: { environment: {
......
<script> <script>
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
import { GlTooltipDirective } from '@gitlab/ui'; import { GlTooltipDirective } from '@gitlab/ui';
import DeprecatedModal2 from '~/vue_shared/components/deprecated_modal_2.vue'; import DeprecatedModal2 from '~/vue_shared/components/deprecated_modal_2.vue';
import { s__, sprintf } from '~/locale'; import { s__, sprintf } from '~/locale';
......
/* eslint-disable @gitlab/i18n/no-non-i18n-strings, import/prefer-default-export */ /* eslint-disable @gitlab/require-i18n-strings, import/prefer-default-export */
/** /**
* Tracks snowplow event when User clicks on error link to Sentry * Tracks snowplow event when User clicks on error link to Sentry
......
...@@ -24,7 +24,7 @@ export default { ...@@ -24,7 +24,7 @@ export default {
<label class="label-bold" for="error-tracking-api-host">{{ __('Sentry API URL') }}</label> <label class="label-bold" for="error-tracking-api-host">{{ __('Sentry API URL') }}</label>
<div class="row"> <div class="row">
<div class="col-8 col-md-9 gl-pr-0"> <div class="col-8 col-md-9 gl-pr-0">
<!-- eslint-disable @gitlab/vue-i18n/no-bare-attribute-strings --> <!-- eslint-disable @gitlab/vue-require-i18n-attribute-strings -->
<gl-form-input <gl-form-input
id="error-tracking-api-host" id="error-tracking-api-host"
:value="apiHost" :value="apiHost"
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
) )
}} }}
</p> </p>
<!-- eslint-enable @gitlab/vue-i18n/no-bare-attribute-strings --> <!-- eslint-enable @gitlab/vue-require-i18n-attribute-strings -->
</div> </div>
</div> </div>
</div> </div>
......
<script> <script>
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
import Icon from '~/vue_shared/components/icon.vue'; import Icon from '~/vue_shared/components/icon.vue';
import Timeago from '~/vue_shared/components/time_ago_tooltip.vue'; import Timeago from '~/vue_shared/components/time_ago_tooltip.vue';
import router from '../../ide_router'; import router from '../../ide_router';
......
...@@ -38,7 +38,7 @@ export default { ...@@ -38,7 +38,7 @@ export default {
computed: { computed: {
iconName() { iconName() {
// name: '-solid' is a false positive: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26#possible-false-positives // name: '-solid' is a false positive: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26#possible-false-positives
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
const suffix = this.stagedList ? '-solid' : ''; const suffix = this.stagedList ? '-solid' : '';
return `${getCommitIconMap(this.file).icon}${suffix}`; return `${getCommitIconMap(this.file).icon}${suffix}`;
......
<script> <script>
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
import { mapActions, mapState, mapGetters } from 'vuex'; import { mapActions, mapState, mapGetters } from 'vuex';
import IdeStatusList from 'ee_else_ce/ide/components/ide_status_list.vue'; import IdeStatusList from 'ee_else_ce/ide/components/ide_status_list.vue';
import IdeStatusMr from './ide_status_mr.vue'; import IdeStatusMr from './ide_status_mr.vue';
......
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
}, },
}), }),
namespace() { namespace() {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
return `${this.side}Pane`; return `${this.side}Pane`;
}, },
tabs() { tabs() {
......
<script> <script>
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
import { uniqueId } from 'lodash'; import { uniqueId } from 'lodash';
import { GlLink, GlTooltip, GlTooltipDirective } from '@gitlab/ui'; import { GlLink, GlTooltip, GlTooltipDirective } from '@gitlab/ui';
import { __ } from '~/locale'; import { __ } from '~/locale';
......
<script> <script>
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
import { __, sprintf } from '~/locale'; import { __, sprintf } from '~/locale';
import updateMixin from '../mixins/update'; import updateMixin from '../mixins/update';
import eventHub from '../event_hub'; import eventHub from '../event_hub';
......
<script> <script>
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
import timeAgoTooltip from '../../vue_shared/components/time_ago_tooltip.vue'; import timeAgoTooltip from '../../vue_shared/components/time_ago_tooltip.vue';
export default { export default {
......
<script> <script>
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
import $ from 'jquery'; import $ from 'jquery';
import IssuableTemplateSelectors from '../../../templates/issuable_template_selectors'; import IssuableTemplateSelectors from '../../../templates/issuable_template_selectors';
......
<script> <script>
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
import { GlLink } from '@gitlab/ui'; import { GlLink } from '@gitlab/ui';
import ClipboardButton from '~/vue_shared/components/clipboard_button.vue'; import ClipboardButton from '~/vue_shared/components/clipboard_button.vue';
......
...@@ -29,5 +29,5 @@ export const updateDraft = (autosaveKey, text) => { ...@@ -29,5 +29,5 @@ export const updateDraft = (autosaveKey, text) => {
}; };
export const getDiscussionReplyKey = (noteableType, discussionId) => export const getDiscussionReplyKey = (noteableType, discussionId) =>
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */ /* eslint-disable-next-line @gitlab/require-i18n-strings */
['Note', capitalizeFirstCharacter(noteableType), discussionId, 'Reply'].join('/'); ['Note', capitalizeFirstCharacter(noteableType), discussionId, 'Reply'].join('/');
...@@ -10,7 +10,7 @@ const durationToMillis = duration => { ...@@ -10,7 +10,7 @@ const durationToMillis = duration => {
if (Object.entries(duration).length === 1 && Number.isFinite(duration.seconds)) { if (Object.entries(duration).length === 1 && Number.isFinite(duration.seconds)) {
return secondsToMilliseconds(duration.seconds); return secondsToMilliseconds(duration.seconds);
} }
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
throw new Error('Invalid duration: only `seconds` is supported'); throw new Error('Invalid duration: only `seconds` is supported');
}; };
...@@ -131,7 +131,7 @@ const convertOpenToFixed = ({ anchor, direction }) => { ...@@ -131,7 +131,7 @@ const convertOpenToFixed = ({ anchor, direction }) => {
* Handles invalid date ranges * Handles invalid date ranges
*/ */
const handleInvalidRange = () => { const handleInvalidRange = () => {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
throw new Error('The input range does not have the right format.'); throw new Error('The input range does not have the right format.');
}; };
......
...@@ -13,7 +13,7 @@ function notificationGranted(message, opts, onclick) { ...@@ -13,7 +13,7 @@ function notificationGranted(message, opts, onclick) {
} }
function notifyPermissions() { function notifyPermissions() {
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */ /* eslint-disable-next-line @gitlab/require-i18n-strings */
if ('Notification' in window) { if ('Notification' in window) {
return Notification.requestPermission(); return Notification.requestPermission();
} }
...@@ -25,7 +25,7 @@ function notifyMe(message, body, icon, onclick) { ...@@ -25,7 +25,7 @@ function notifyMe(message, body, icon, onclick) {
icon, icon,
}; };
// Let's check if the browser supports notifications // Let's check if the browser supports notifications
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */ /* eslint-disable-next-line @gitlab/require-i18n-strings */
if (!('Notification' in window)) { if (!('Notification' in window)) {
// do nothing // do nothing
} else if (Notification.permission === 'granted') { } else if (Notification.permission === 'granted') {
......
...@@ -111,7 +111,7 @@ export const scaledSIFormatter = (unit = '', prefixOffset = 0) => { ...@@ -111,7 +111,7 @@ export const scaledSIFormatter = (unit = '', prefixOffset = 0) => {
}); });
if (!units.length) { if (!units.length) {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
throw new RangeError('The unit cannot be converted, please try a different scale'); throw new RangeError('The unit cannot be converted, please try a different scale');
} }
...@@ -122,7 +122,7 @@ export const scaledSIFormatter = (unit = '', prefixOffset = 0) => { ...@@ -122,7 +122,7 @@ export const scaledSIFormatter = (unit = '', prefixOffset = 0) => {
* Returns a function that formats a number scaled using SI units notation. * Returns a function that formats a number scaled using SI units notation.
*/ */
export const scaledBinaryFormatter = (unit = '', prefixOffset = 0) => { export const scaledBinaryFormatter = (unit = '', prefixOffset = 0) => {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
const multiplicative = ['Ki', 'Mi', 'Gi', 'Ti', 'Pi', 'Ei', 'Zi', 'Yi']; const multiplicative = ['Ki', 'Mi', 'Gi', 'Ti', 'Pi', 'Ei', 'Zi', 'Yi'];
const symbols = ['', ...multiplicative]; const symbols = ['', ...multiplicative];
...@@ -131,7 +131,7 @@ export const scaledBinaryFormatter = (unit = '', prefixOffset = 0) => { ...@@ -131,7 +131,7 @@ export const scaledBinaryFormatter = (unit = '', prefixOffset = 0) => {
}); });
if (!units.length) { if (!units.length) {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
throw new RangeError('The unit cannot be converted, please try a different scale'); throw new RangeError('The unit cannot be converted, please try a different scale');
} }
......
...@@ -49,7 +49,7 @@ window.$ = jQuery; ...@@ -49,7 +49,7 @@ window.$ = jQuery;
// Add nonce to jQuery script handler // Add nonce to jQuery script handler
jQuery.ajaxSetup({ jQuery.ajaxSetup({
converters: { converters: {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings, func-names // eslint-disable-next-line @gitlab/require-i18n-strings, func-names
'text script': function(text) { 'text script': function(text) {
jQuery.globalEval(text, { nonce: getCspNonceValue() }); jQuery.globalEval(text, { nonce: getCspNonceValue() });
return text; return text;
......
...@@ -68,7 +68,7 @@ export default { ...@@ -68,7 +68,7 @@ export default {
} }
}) })
.catch(e => { .catch(e => {
// eslint-disable-next-line no-console, @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line no-console, @gitlab/require-i18n-strings
console.error('SVG could not be rendered correctly: ', e); console.error('SVG could not be rendered correctly: ', e);
}); });
}, },
......
...@@ -327,7 +327,7 @@ export default { ...@@ -327,7 +327,7 @@ export default {
} }
}) })
.catch(e => { .catch(e => {
// eslint-disable-next-line no-console, @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line no-console, @gitlab/require-i18n-strings
console.error('SVG could not be rendered correctly: ', e); console.error('SVG could not be rendered correctly: ', e);
}); });
}, },
......
...@@ -95,7 +95,7 @@ export default { ...@@ -95,7 +95,7 @@ export default {
csvText() { csvText() {
const chartData = this.graphData.metrics[0].result[0].values; const chartData = this.graphData.metrics[0].result[0].values;
const yLabel = this.graphData.y_label; const yLabel = this.graphData.y_label;
const header = `timestamp,${yLabel}\r\n`; // eslint-disable-line @gitlab/i18n/no-non-i18n-strings const header = `timestamp,${yLabel}\r\n`; // eslint-disable-line @gitlab/require-i18n-strings
return chartData.reduce((csv, data) => { return chartData.reduce((csv, data) => {
const row = data.join(','); const row = data.join(',');
return `${csv}${row}\r\n`; return `${csv}${row}\r\n`;
......
...@@ -28,7 +28,7 @@ export const graphDataValidatorForValues = (isValues, graphData) => { ...@@ -28,7 +28,7 @@ export const graphDataValidatorForValues = (isValues, graphData) => {
); );
}; };
/* eslint-disable @gitlab/i18n/no-non-i18n-strings */ /* eslint-disable @gitlab/require-i18n-strings */
/** /**
* Checks that element that triggered event is located on cluster health check dashboard * Checks that element that triggered event is located on cluster health check dashboard
* @param {HTMLElement} element to check against * @param {HTMLElement} element to check against
......
<script> <script>
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
import { GlPopover, GlSkeletonLoading } from '@gitlab/ui'; import { GlPopover, GlSkeletonLoading } from '@gitlab/ui';
import CiIcon from '../../vue_shared/components/ci_icon.vue'; import CiIcon from '../../vue_shared/components/ci_icon.vue';
import timeagoMixin from '../../vue_shared/mixins/timeago'; import timeagoMixin from '../../vue_shared/mixins/timeago';
...@@ -8,7 +8,7 @@ import { mrStates, humanMRStates } from '../constants'; ...@@ -8,7 +8,7 @@ import { mrStates, humanMRStates } from '../constants';
export default { export default {
// name: 'MRPopover' is a false positive: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/25 // name: 'MRPopover' is a false positive: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/25
name: 'MRPopover', // eslint-disable-line @gitlab/i18n/no-non-i18n-strings name: 'MRPopover', // eslint-disable-line @gitlab/require-i18n-strings
components: { components: {
GlPopover, GlPopover,
GlSkeletonLoading, GlSkeletonLoading,
...@@ -102,11 +102,11 @@ export default { ...@@ -102,11 +102,11 @@ export default {
<ci-icon v-if="detailedStatus" :status="detailedStatus" /> <ci-icon v-if="detailedStatus" :status="detailedStatus" />
</div> </div>
<h5 class="my-2">{{ mergeRequestTitle }}</h5> <h5 class="my-2">{{ mergeRequestTitle }}</h5>
<!-- eslint-disable @gitlab/vue-i18n/no-bare-strings --> <!-- eslint-disable @gitlab/vue-require-i18n-strings -->
<div class="text-secondary"> <div class="text-secondary">
{{ `${projectPath}!${mergeRequestIID}` }} {{ `${projectPath}!${mergeRequestIID}` }}
</div> </div>
<!-- eslint-enable @gitlab/vue-i18n/no-bare-strings --> <!-- eslint-enable @gitlab/vue-require-i18n-strings -->
</div> </div>
</gl-popover> </gl-popover>
</template> </template>
/* eslint-disable func-names, consistent-return, no-return-assign, no-else-return, @gitlab/i18n/no-non-i18n-strings */ /* eslint-disable func-names, consistent-return, no-return-assign, no-else-return, @gitlab/require-i18n-strings */
import $ from 'jquery'; import $ from 'jquery';
import RefSelectDropdown from './ref_select_dropdown'; import RefSelectDropdown from './ref_select_dropdown';
......
...@@ -29,6 +29,7 @@ export default { ...@@ -29,6 +29,7 @@ export default {
metadata: { metadata: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
}, },
computed: { computed: {
......
...@@ -43,7 +43,7 @@ renderer.paragraph = t => { ...@@ -43,7 +43,7 @@ renderer.paragraph = t => {
if (typeof katex !== 'undefined') { if (typeof katex !== 'undefined') {
const katexString = text const katexString = text
.replace(/&amp;/g, '&') .replace(/&amp;/g, '&')
.replace(/&=&/g, '\\space=\\space') // eslint-disable-line @gitlab/i18n/no-non-i18n-strings .replace(/&=&/g, '\\space=\\space') // eslint-disable-line @gitlab/require-i18n-strings
.replace(/<(\/?)em>/g, '_'); .replace(/<(\/?)em>/g, '_');
const regex = new RegExp(katexRegexString, 'gi'); const regex = new RegExp(katexRegexString, 'gi');
const matchLocation = katexString.search(regex); const matchLocation = katexString.search(regex);
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
}, },
computed: { computed: {
imgSrc() { imgSrc() {
return `data:${this.outputType};base64,${this.rawCode}`; // eslint-disable-line @gitlab/i18n/no-non-i18n-strings return `data:${this.outputType};base64,${this.rawCode}`; // eslint-disable-line @gitlab/require-i18n-strings
}, },
showOutput() { showOutput() {
return this.index === 0; return this.index === 0;
......
...@@ -22,6 +22,7 @@ export default { ...@@ -22,6 +22,7 @@ export default {
metadata: { metadata: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
}, },
methods: { methods: {
......
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
}, },
methods: { methods: {
cellType(type) { cellType(type) {
return `${type}-cell`; // eslint-disable-line @gitlab/i18n/no-non-i18n-strings return `${type}-cell`; // eslint-disable-line @gitlab/require-i18n-strings
}, },
}, },
}; };
......
<script> <script>
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
import { mapState, mapActions } from 'vuex'; import { mapState, mapActions } from 'vuex';
import { GlSkeletonLoading } from '@gitlab/ui'; import { GlSkeletonLoading } from '@gitlab/ui';
import DiffFileHeader from '~/diffs/components/diff_file_header.vue'; import DiffFileHeader from '~/diffs/components/diff_file_header.vue';
......
<script> <script>
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
import timeAgoTooltip from '../../vue_shared/components/time_ago_tooltip.vue'; import timeAgoTooltip from '../../vue_shared/components/time_ago_tooltip.vue';
export default { export default {
......
...@@ -54,14 +54,14 @@ export default { ...@@ -54,14 +54,14 @@ export default {
:description="s__('ExternalMetrics|Enter the URL of the dashboard you want to link to')" :description="s__('ExternalMetrics|Enter the URL of the dashboard you want to link to')"
> >
<!-- placeholder with a url is a false positive --> <!-- placeholder with a url is a false positive -->
<!-- eslint-disable @gitlab/vue-i18n/no-bare-attribute-strings --> <!-- eslint-disable @gitlab/vue-require-i18n-attribute-strings -->
<gl-form-input <gl-form-input
id="full-dashboard-url" id="full-dashboard-url"
v-model="userDashboardUrl" v-model="userDashboardUrl"
placeholder="https://my-org.gitlab.io/my-dashboards" placeholder="https://my-org.gitlab.io/my-dashboards"
@keydown.enter.native.prevent="updateExternalDashboardUrl" @keydown.enter.native.prevent="updateExternalDashboardUrl"
/> />
<!-- eslint-enable @gitlab/vue-i18n/no-bare-attribute-strings --> <!-- eslint-enable @gitlab/vue-require-i18n-attribute-strings -->
</gl-form-group> </gl-form-group>
<gl-button variant="success" @click="updateExternalDashboardUrl"> <gl-button variant="success" @click="updateExternalDashboardUrl">
{{ __('Save Changes') }} {{ __('Save Changes') }}
......
...@@ -19,7 +19,7 @@ function loadModalsConfigurationFromHtml(modalsElement) { ...@@ -19,7 +19,7 @@ function loadModalsConfigurationFromHtml(modalsElement) {
const modalsConfiguration = {}; const modalsConfiguration = {};
if (!modalsElement) { if (!modalsElement) {
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */ /* eslint-disable-next-line @gitlab/require-i18n-strings */
throw new Error('Modals content element not found!'); throw new Error('Modals content element not found!');
} }
......
/* eslint-disable @gitlab/i18n/no-non-i18n-strings */ /* eslint-disable @gitlab/require-i18n-strings */
import Vue from 'vue'; import Vue from 'vue';
import axios from '~/lib/utils/axios_utils'; import axios from '~/lib/utils/axios_utils';
......
<script> <script>
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
import { GlLink, GlTooltipDirective } from '@gitlab/ui'; import { GlLink, GlTooltipDirective } from '@gitlab/ui';
import Icon from '~/vue_shared/components/icon.vue'; import Icon from '~/vue_shared/components/icon.vue';
......
...@@ -14,15 +14,15 @@ export default { ...@@ -14,15 +14,15 @@ export default {
computed: { computed: {
...mapState(['config']), ...mapState(['config']),
dockerBuildCommand() { dockerBuildCommand() {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
return `docker build -t ${this.config.repositoryUrl} .`; return `docker build -t ${this.config.repositoryUrl} .`;
}, },
dockerPushCommand() { dockerPushCommand() {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
return `docker push ${this.config.repositoryUrl}`; return `docker push ${this.config.repositoryUrl}`;
}, },
dockerLoginCommand() { dockerLoginCommand() {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
return `docker login ${this.config.registryHostUrlWithPort}`; return `docker login ${this.config.registryHostUrlWithPort}`;
}, },
}, },
......
...@@ -37,15 +37,15 @@ export default { ...@@ -37,15 +37,15 @@ export default {
}, },
computed: { computed: {
dockerBuildCommand() { dockerBuildCommand() {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
return `docker build -t ${this.repositoryUrl} .`; return `docker build -t ${this.repositoryUrl} .`;
}, },
dockerPushCommand() { dockerPushCommand() {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
return `docker push ${this.repositoryUrl}`; return `docker push ${this.repositoryUrl}`;
}, },
dockerLoginCommand() { dockerLoginCommand() {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
return `docker login ${this.registryHostUrlWithPort}`; return `docker login ${this.registryHostUrlWithPort}`;
}, },
noContainerImagesText() { noContainerImagesText() {
......
<script> <script>
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
export default { export default {
name: 'ReportIssueLink', name: 'ReportIssueLink',
props: { props: {
......
...@@ -151,7 +151,7 @@ export default { ...@@ -151,7 +151,7 @@ export default {
> >
{{ fullPath }} {{ fullPath }}
</component> </component>
<!-- eslint-disable-next-line @gitlab/vue-i18n/no-bare-strings --> <!-- eslint-disable-next-line @gitlab/vue-require-i18n-strings -->
<gl-badge v-if="lfsOid" variant="default" class="label-lfs ml-1">LFS</gl-badge> <gl-badge v-if="lfsOid" variant="default" class="label-lfs ml-1">LFS</gl-badge>
<template v-if="isSubmodule"> <template v-if="isSubmodule">
@ <gl-link :href="submoduleTreeUrl" class="commit-sha">{{ shortSha }}</gl-link> @ <gl-link :href="submoduleTreeUrl" class="commit-sha">{{ shortSha }}</gl-link>
......
...@@ -39,7 +39,7 @@ const defaultClient = createDefaultClient( ...@@ -39,7 +39,7 @@ const defaultClient = createDefaultClient(
cacheConfig: { cacheConfig: {
fragmentMatcher, fragmentMatcher,
dataIdFromObject: obj => { dataIdFromObject: obj => {
/* eslint-disable @gitlab/i18n/no-non-i18n-strings */ /* eslint-disable @gitlab/require-i18n-strings */
// eslint-disable-next-line no-underscore-dangle // eslint-disable-next-line no-underscore-dangle
switch (obj.__typename) { switch (obj.__typename) {
// We need to create a dynamic ID for each entry // We need to create a dynamic ID for each entry
...@@ -55,7 +55,7 @@ const defaultClient = createDefaultClient( ...@@ -55,7 +55,7 @@ const defaultClient = createDefaultClient(
// eslint-disable-next-line no-underscore-dangle // eslint-disable-next-line no-underscore-dangle
return obj.id || obj._id; return obj.id || obj._id;
} }
/* eslint-enable @gitlab/i18n/no-non-i18n-strings */ /* eslint-enable @gitlab/require-i18n-strings */
}, },
}, },
}, },
......
...@@ -9,7 +9,7 @@ export const setTitle = (pathMatch, ref, project) => { ...@@ -9,7 +9,7 @@ export const setTitle = (pathMatch, ref, project) => {
const path = pathMatch.replace(/^\//, ''); const path = pathMatch.replace(/^\//, '');
const isEmpty = path === ''; const isEmpty = path === '';
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */ /* eslint-disable-next-line @gitlab/require-i18n-strings */
document.title = `${isEmpty ? 'Files' : path} · ${ref} · ${project} ${DEFAULT_TITLE}`; document.title = `${isEmpty ? 'Files' : path} · ${ref} · ${project} ${DEFAULT_TITLE}`;
}; };
......
...@@ -420,11 +420,11 @@ export class SearchAutocomplete { ...@@ -420,11 +420,11 @@ export class SearchAutocomplete {
onClick(item, $el, e) { onClick(item, $el, e) {
if (window.location.pathname.indexOf(item.url) !== -1) { if (window.location.pathname.indexOf(item.url) !== -1) {
if (!e.metaKey) e.preventDefault(); if (!e.metaKey) e.preventDefault();
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */ /* eslint-disable-next-line @gitlab/require-i18n-strings */
if (item.category === 'Projects') { if (item.category === 'Projects') {
this.projectInputEl.val(item.id); this.projectInputEl.val(item.id);
} }
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */ // eslint-disable-next-line @gitlab/require-i18n-strings
if (item.category === 'Groups') { if (item.category === 'Groups') {
this.groupInputEl.val(item.id); this.groupInputEl.val(item.id);
} }
......
...@@ -4,7 +4,7 @@ import UncollapsedAssigneeList from '../assignees/uncollapsed_assignee_list.vue' ...@@ -4,7 +4,7 @@ import UncollapsedAssigneeList from '../assignees/uncollapsed_assignee_list.vue'
export default { export default {
// name: 'Assignees' is a false positive: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26#possible-false-positives // name: 'Assignees' is a false positive: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26#possible-false-positives
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
name: 'Assignees', name: 'Assignees',
components: { components: {
CollapsedAssigneeList, CollapsedAssigneeList,
......
...@@ -40,6 +40,7 @@ export default { ...@@ -40,6 +40,7 @@ export default {
limitToHours: { limitToHours: {
type: Boolean, type: Boolean,
default: false, default: false,
required: false,
}, },
rootPath: { rootPath: {
type: String, type: String,
......
...@@ -54,7 +54,7 @@ export default class Tracking { ...@@ -54,7 +54,7 @@ export default class Tracking {
static event(category = document.body.dataset.page, action = 'generic', data = {}) { static event(category = document.body.dataset.page, action = 'generic', data = {}) {
if (!this.enabled()) return false; if (!this.enabled()) return false;
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
if (!category) throw new Error('Tracking: no category provided for tracking.'); if (!category) throw new Error('Tracking: no category provided for tracking.');
const { label, property, value, context } = data; const { label, property, value, context } = data;
......
...@@ -5,7 +5,7 @@ import { MANUAL_DEPLOY, WILL_DEPLOY, CREATED } from './constants'; ...@@ -5,7 +5,7 @@ import { MANUAL_DEPLOY, WILL_DEPLOY, CREATED } from './constants';
export default { export default {
// name: 'Deployment' is a false positive: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26#possible-false-positives // name: 'Deployment' is a false positive: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26#possible-false-positives
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
name: 'Deployment', name: 'Deployment',
components: { components: {
DeploymentActions, DeploymentActions,
......
<script> <script>
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
import { GlLoadingIcon } from '@gitlab/ui'; import { GlLoadingIcon } from '@gitlab/ui';
import Flash from '~/flash'; import Flash from '~/flash';
import tooltip from '~/vue_shared/directives/tooltip'; import tooltip from '~/vue_shared/directives/tooltip';
...@@ -86,7 +86,7 @@ export default { ...@@ -86,7 +86,7 @@ export default {
.then(res => res.data) .then(res => res.data)
.then(data => { .then(data => {
// False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26 // False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
if (data.message === 'Branch was deleted') { if (data.message === 'Branch was deleted') {
eventHub.$emit('MRWidgetUpdateRequested', () => { eventHub.$emit('MRWidgetUpdateRequested', () => {
this.isMakingRequest = false; this.isMakingRequest = false;
......
...@@ -42,7 +42,7 @@ import { setFaviconOverlay } from '../lib/utils/common_utils'; ...@@ -42,7 +42,7 @@ import { setFaviconOverlay } from '../lib/utils/common_utils';
export default { export default {
el: '#js-vue-mr-widget', el: '#js-vue-mr-widget',
// False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/25 // False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/25
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
name: 'MRWidget', name: 'MRWidget',
components: { components: {
Loading, Loading,
......
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
computed: { computed: {
changedIcon() { changedIcon() {
// False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26 // False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
const suffix = this.file.staged && this.showStagedIcon ? '-solid' : ''; const suffix = this.file.staged && this.showStagedIcon ? '-solid' : '';
return `${getCommitIconMap(this.file).icon}${suffix}`; return `${getCommitIconMap(this.file).icon}${suffix}`;
......
...@@ -8,6 +8,7 @@ export default { ...@@ -8,6 +8,7 @@ export default {
content: { content: {
type: String, type: String,
default: '', default: '',
required: false,
}, },
path: { path: {
type: String, type: String,
......
...@@ -16,6 +16,7 @@ export default { ...@@ -16,6 +16,7 @@ export default {
renderInfo: { renderInfo: {
type: Boolean, type: Boolean,
default: true, default: true,
required: false,
}, },
innerCssClasses: { innerCssClasses: {
type: [Array, Object, String], type: [Array, Object, String],
......
...@@ -39,10 +39,10 @@ export default { ...@@ -39,10 +39,10 @@ export default {
mdTable() { mdTable() {
return [ return [
// False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26 // False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26
'| header | header |', // eslint-disable-line @gitlab/i18n/no-non-i18n-strings '| header | header |', // eslint-disable-line @gitlab/require-i18n-strings
'| ------ | ------ |', '| ------ | ------ |',
'| cell | cell |', // eslint-disable-line @gitlab/i18n/no-non-i18n-strings '| cell | cell |', // eslint-disable-line @gitlab/require-i18n-strings
'| cell | cell |', // eslint-disable-line @gitlab/i18n/no-non-i18n-strings '| cell | cell |', // eslint-disable-line @gitlab/require-i18n-strings
].join('\n'); ].join('\n');
}, },
mdSuggestion() { mdSuggestion() {
......
<script> <script>
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
import { GlLink, GlLoadingIcon } from '@gitlab/ui'; import { GlLink, GlLoadingIcon } from '@gitlab/ui';
export default { export default {
......
...@@ -15,6 +15,7 @@ export default { ...@@ -15,6 +15,7 @@ export default {
size: { size: {
type: Number, type: Number,
default: 40, default: 40,
required: false,
}, },
}, },
computed: { computed: {
......
...@@ -4,7 +4,7 @@ import 'select2'; ...@@ -4,7 +4,7 @@ import 'select2';
export default { export default {
// False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26 // False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
name: 'Select2Select', name: 'Select2Select',
props: { props: {
options: { options: {
......
...@@ -77,12 +77,12 @@ export default { ...@@ -77,12 +77,12 @@ export default {
}, },
enableScopedLabels: { enableScopedLabels: {
type: Boolean, type: Boolean,
require: false, required: false,
default: false, default: false,
}, },
scopedLabelsDocumentationLink: { scopedLabelsDocumentationLink: {
type: String, type: String,
require: false, required: false,
default: '#', default: '#',
}, },
}, },
......
...@@ -33,12 +33,12 @@ export default { ...@@ -33,12 +33,12 @@ export default {
}, },
enableScopedLabels: { enableScopedLabels: {
type: Boolean, type: Boolean,
require: false, required: false,
default: false, default: false,
}, },
scopedLabelsDocumentationLink: { scopedLabelsDocumentationLink: {
type: String, type: String,
require: false, required: false,
default: '#', default: '#',
}, },
}, },
......
...@@ -45,7 +45,7 @@ export const createLabel = ({ state, dispatch }, label) => { ...@@ -45,7 +45,7 @@ export const createLabel = ({ state, dispatch }, label) => {
dispatch('receiveCreateLabelSuccess'); dispatch('receiveCreateLabelSuccess');
dispatch('toggleDropdownContentsCreateView'); dispatch('toggleDropdownContentsCreateView');
} else { } else {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
throw new Error('Error Creating Label'); throw new Error('Error Creating Label');
} }
}) })
......
...@@ -8,9 +8,9 @@ export default { ...@@ -8,9 +8,9 @@ export default {
size: { type: Number, required: true }, size: { type: Number, required: true },
length: { type: Number, required: true }, length: { type: Number, required: true },
remain: { type: Number, required: true }, remain: { type: Number, required: true },
rtag: { type: String, default: 'div' }, rtag: { type: String, default: 'div', required: false },
wtag: { type: String, default: 'div' }, wtag: { type: String, default: 'div', required: false },
wclass: { type: String, default: null }, wclass: { type: String, default: null, required: false },
}, },
}; };
</script> </script>
......
...@@ -83,7 +83,7 @@ export default { ...@@ -83,7 +83,7 @@ export default {
}, },
barStyle(percent) { barStyle(percent) {
// False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26 // False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
return `width: ${percent}%;`; return `width: ${percent}%;`;
}, },
getTooltip(label, count) { getTooltip(label, count) {
......
<script> <script>
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
import { __ } from '~/locale'; import { __ } from '~/locale';
import Flash from '~/flash'; import Flash from '~/flash';
import { redirectTo } from '~/lib/utils/url_utility'; import { redirectTo } from '~/lib/utils/url_utility';
......
...@@ -55,7 +55,7 @@ export default { ...@@ -55,7 +55,7 @@ export default {
} }
}) })
.catch(e => { .catch(e => {
// eslint-disable-next-line no-console, @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line no-console, @gitlab/require-i18n-strings
console.error('SVG could not be rendered correctly: ', e); console.error('SVG could not be rendered correctly: ', e);
}); });
}, },
......
...@@ -24,6 +24,7 @@ export default { ...@@ -24,6 +24,7 @@ export default {
hideGroupDropDown: { hideGroupDropDown: {
type: Boolean, type: Boolean,
default: false, default: false,
required: false,
}, },
}, },
data() { data() {
......
...@@ -31,7 +31,7 @@ export default { ...@@ -31,7 +31,7 @@ export default {
}, },
minDate: { minDate: {
type: Date, type: Date,
rerquired: false, required: false,
default: null, default: null,
}, },
maxDate: { maxDate: {
......
...@@ -15,6 +15,7 @@ export default { ...@@ -15,6 +15,7 @@ export default {
isMrEdit: { isMrEdit: {
type: Boolean, type: Boolean,
default: true, default: true,
required: false,
}, },
}, },
computed: { computed: {
......
...@@ -17,6 +17,7 @@ export default { ...@@ -17,6 +17,7 @@ export default {
isMrEdit: { isMrEdit: {
type: Boolean, type: Boolean,
default: true, default: true,
required: false,
}, },
}, },
computed: { computed: {
......
...@@ -31,6 +31,7 @@ export default { ...@@ -31,6 +31,7 @@ export default {
isMrEdit: { isMrEdit: {
type: Boolean, type: Boolean,
default: true, default: true,
required: false,
}, },
canEdit: { canEdit: {
type: Boolean, type: Boolean,
......
...@@ -28,6 +28,7 @@ export default { ...@@ -28,6 +28,7 @@ export default {
isMrEdit: { isMrEdit: {
type: Boolean, type: Boolean,
default: true, default: true,
required: false,
}, },
}, },
data() { data() {
......
...@@ -45,7 +45,7 @@ export default { ...@@ -45,7 +45,7 @@ export default {
}, },
linePosition() { linePosition() {
if (this.draft.position && this.draft.position.position_type === IMAGE_DIFF_POSITION_TYPE) { if (this.draft.position && this.draft.position.position_type === IMAGE_DIFF_POSITION_TYPE) {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
return `${this.draft.position.x}x ${this.draft.position.y}y`; return `${this.draft.position.x}x ${this.draft.position.y}y`;
} }
......
<script> <script>
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
import { GlLoadingIcon } from '@gitlab/ui'; import { GlLoadingIcon } from '@gitlab/ui';
import MilestoneSelect from '~/milestone_select'; import MilestoneSelect from '~/milestone_select';
......
...@@ -15,7 +15,7 @@ export default { ...@@ -15,7 +15,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 */ /* eslint-disable-next-line @gitlab/require-i18n-strings */
const filter = `weight=${issueWeight}`; const filter = `weight=${issueWeight}`;
this.applyFilter(filter); this.applyFilter(filter);
......
...@@ -4,7 +4,7 @@ import boardsStoreEE from './boards_store_ee'; ...@@ -4,7 +4,7 @@ import boardsStoreEE from './boards_store_ee';
import * as types from './mutation_types'; import * as types from './mutation_types';
const notImplemented = () => { const notImplemented = () => {
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */ /* eslint-disable-next-line @gitlab/require-i18n-strings */
throw new Error('Not implemented!'); throw new Error('Not implemented!');
}; };
......
...@@ -96,7 +96,7 @@ class BoardsStoreEE { ...@@ -96,7 +96,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 */ /* eslint-disable-next-line @gitlab/require-i18n-strings */
milestoneTitle = 'No+Milestone'; milestoneTitle = 'No+Milestone';
} else { } else {
milestoneTitle = encodeURIComponent(milestoneTitle); milestoneTitle = encodeURIComponent(milestoneTitle);
...@@ -109,7 +109,7 @@ class BoardsStoreEE { ...@@ -109,7 +109,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 */ /* eslint-disable-next-line @gitlab/require-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 */ /* eslint-disable-next-line @gitlab/require-i18n-strings */
throw new Error('Not implemented!'); throw new Error('Not implemented!');
}; };
......
...@@ -13,7 +13,7 @@ const defaultClient = createDefaultClient( ...@@ -13,7 +13,7 @@ const defaultClient = createDefaultClient(
{ {
cacheConfig: { cacheConfig: {
dataIdFromObject: object => { dataIdFromObject: object => {
// eslint-disable-next-line no-underscore-dangle, @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line no-underscore-dangle, @gitlab/require-i18n-strings
if (object.__typename === 'Design') { if (object.__typename === 'Design') {
return object.id && object.image ? `${object.id}-${object.image}` : _.uniqueId(); return object.id && object.image ? `${object.id}-${object.image}` : _.uniqueId();
} }
......
...@@ -73,7 +73,7 @@ const addDiscussionCommentToStore = (store, createNote, query, queryVariables, d ...@@ -73,7 +73,7 @@ const addDiscussionCommentToStore = (store, createNote, query, queryVariables, d
{ {
__typename: 'UserEdge', __typename: 'UserEdge',
node: { node: {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
__typename: 'User', __typename: 'User',
...createNote.note.author, ...createNote.note.author,
}, },
...@@ -101,7 +101,7 @@ const addImageDiffNoteToStore = (store, createImageDiffNote, query, variables) = ...@@ -101,7 +101,7 @@ const addImageDiffNoteToStore = (store, createImageDiffNote, query, variables) =
__typename: 'DiscussionEdge', __typename: 'DiscussionEdge',
node: { node: {
// False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26 // False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
__typename: 'Discussion', __typename: 'Discussion',
id: createImageDiffNote.note.discussion.id, id: createImageDiffNote.note.discussion.id,
replyId: createImageDiffNote.note.discussion.replyId, replyId: createImageDiffNote.note.discussion.replyId,
...@@ -129,7 +129,7 @@ const addImageDiffNoteToStore = (store, createImageDiffNote, query, variables) = ...@@ -129,7 +129,7 @@ const addImageDiffNoteToStore = (store, createImageDiffNote, query, variables) =
{ {
__typename: 'UserEdge', __typename: 'UserEdge',
node: { node: {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
__typename: 'User', __typename: 'User',
...createImageDiffNote.note.author, ...createImageDiffNote.note.author,
}, },
......
...@@ -49,7 +49,7 @@ export const extractDesign = data => data.project.issue.designCollection.designs ...@@ -49,7 +49,7 @@ export const extractDesign = data => data.project.issue.designCollection.designs
export const designUploadOptimisticResponse = files => { export const designUploadOptimisticResponse = files => {
const designs = files.map(file => ({ const designs = files.map(file => ({
// False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26 // False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
__typename: 'Design', __typename: 'Design',
id: -uniqueId(), id: -uniqueId(),
image: '', image: '',
...@@ -82,7 +82,7 @@ export const designUploadOptimisticResponse = files => { ...@@ -82,7 +82,7 @@ export const designUploadOptimisticResponse = files => {
return { return {
// False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26 // False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
__typename: 'Mutation', __typename: 'Mutation',
designManagementUpload: { designManagementUpload: {
__typename: 'DesignManagementUploadPayload', __typename: 'DesignManagementUploadPayload',
...@@ -99,7 +99,7 @@ export const designUploadOptimisticResponse = files => { ...@@ -99,7 +99,7 @@ export const designUploadOptimisticResponse = files => {
*/ */
export const updateImageDiffNoteOptimisticResponse = (note, { position }) => ({ export const updateImageDiffNoteOptimisticResponse = (note, { position }) => ({
// False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26 // False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
__typename: 'Mutation', __typename: 'Mutation',
updateImageDiffNote: { updateImageDiffNote: {
__typename: 'UpdateImageDiffNotePayload', __typename: 'UpdateImageDiffNotePayload',
......
<script> <script>
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */ /* eslint-disable @gitlab/vue-require-i18n-strings */
/** /**
* Renders a deploy board. * Renders a deploy board.
* *
......
...@@ -43,7 +43,7 @@ export default { ...@@ -43,7 +43,7 @@ export default {
actionButtonClass() { actionButtonClass() {
// False positive css classes // False positive css classes
// https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/24 // https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/24
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
return `btn btn-grouped js-btn-epic-action qa-close-reopen-epic-button ${ return `btn btn-grouped js-btn-epic-action qa-close-reopen-epic-button ${
this.isEpicOpen ? 'btn-close' : 'btn-open' this.isEpicOpen ? 'btn-close' : 'btn-open'
}`; }`;
......
...@@ -182,7 +182,7 @@ export const saveDate = ({ state, dispatch }, { dateType, dateTypeIsFixed, newDa ...@@ -182,7 +182,7 @@ export const saveDate = ({ state, dispatch }, { dateType, dateTypeIsFixed, newDa
newDate, newDate,
}); });
} else { } else {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
throw new Error('An error occurred while saving the date'); throw new Error('An error occurred while saving the date');
} }
}) })
...@@ -226,7 +226,7 @@ export const updateEpicLabels = ({ dispatch, state }, labels) => { ...@@ -226,7 +226,7 @@ export const updateEpicLabels = ({ dispatch, state }, labels) => {
if (!data?.updateEpic?.errors.length) { if (!data?.updateEpic?.errors.length) {
dispatch('receiveEpicLabelsSelectSuccess', labels); dispatch('receiveEpicLabelsSelectSuccess', labels);
} else { } else {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
throw new Error('An error occurred while updating labels'); throw new Error('An error occurred while updating labels');
} }
}) })
...@@ -269,7 +269,7 @@ export const toggleEpicSubscription = ({ state, dispatch }) => { ...@@ -269,7 +269,7 @@ export const toggleEpicSubscription = ({ state, dispatch }) => {
subscribed: !state.subscribed, subscribed: !state.subscribed,
}); });
} else { } else {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
throw new Error('An error occurred while toggling to notifications.'); throw new Error('An error occurred while toggling to notifications.');
} }
}) })
......
...@@ -56,6 +56,7 @@ export default { ...@@ -56,6 +56,7 @@ export default {
disabled: { disabled: {
type: Boolean, type: Boolean,
default: false, default: false,
required: false,
}, },
}, },
data() { data() {
......
...@@ -4,7 +4,7 @@ import EERightPane from './panes/right.vue'; ...@@ -4,7 +4,7 @@ import EERightPane from './panes/right.vue';
export default { export default {
// name: 'EEIde' is a false positive: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/25 // name: 'EEIde' is a false positive: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/25
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
name: 'EEIde', name: 'EEIde',
components: { components: {
Ide, Ide,
......
/* eslint-disable @gitlab/i18n/no-non-i18n-strings */ /* eslint-disable @gitlab/require-i18n-strings */
import { createTwoFilesPatch } from 'diff'; import { createTwoFilesPatch } from 'diff';
import { commitActionTypes } from '~/ide/constants'; import { commitActionTypes } from '~/ide/constants';
......
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
} }
}) })
.catch(e => { .catch(e => {
// eslint-disable-next-line no-console, @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line no-console, @gitlab/require-i18n-strings
console.error('SVG could not be rendered correctly: ', e); console.error('SVG could not be rendered correctly: ', e);
}); });
}, },
......
...@@ -3,7 +3,7 @@ import _ from 'underscore'; ...@@ -3,7 +3,7 @@ import _ from 'underscore';
export default { export default {
// name: 'Cell' is a false positive: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/25 // name: 'Cell' is a false positive: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/25
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
name: 'Cell', name: 'Cell',
props: { props: {
title: { title: {
......
...@@ -191,7 +191,7 @@ const GUIDED_GITLAB_TOUR = [ ...@@ -191,7 +191,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 // eslint-disable-next-line @gitlab/require-i18n-strings
redirectPath: `issues?${LABEL_SEARCH_QUERY}`, redirectPath: `issues?${LABEL_SEARCH_QUERY}`,
}, },
], ],
......
...@@ -25,12 +25,12 @@ export const packageTypeDisplay = ({ packageEntity }) => { ...@@ -25,12 +25,12 @@ export const packageTypeDisplay = ({ packageEntity }) => {
export const conanInstallationCommand = ({ packageEntity }) => { export const conanInstallationCommand = ({ packageEntity }) => {
const recipe = generateConanRecipe(packageEntity); const recipe = generateConanRecipe(packageEntity);
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
return `conan install ${recipe} --remote=gitlab`; return `conan install ${recipe} --remote=gitlab`;
}; };
export const conanSetupCommand = ({ conanPath }) => export const conanSetupCommand = ({ conanPath }) =>
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
`conan remote add gitlab ${conanPath}`; `conan remote add gitlab ${conanPath}`;
export const mavenInstallationXml = ({ packageEntity = {} }) => { export const mavenInstallationXml = ({ packageEntity = {} }) => {
...@@ -77,7 +77,7 @@ export const mavenSetupXml = ({ mavenPath }) => `<repositories> ...@@ -77,7 +77,7 @@ export const mavenSetupXml = ({ mavenPath }) => `<repositories>
</distributionManagement>`; </distributionManagement>`;
export const npmInstallationCommand = ({ packageEntity }) => (type = NpmManager.NPM) => { export const npmInstallationCommand = ({ packageEntity }) => (type = NpmManager.NPM) => {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
const instruction = type === NpmManager.NPM ? 'npm i' : 'yarn add'; const instruction = type === NpmManager.NPM ? 'npm i' : 'yarn add';
return `${instruction} ${packageEntity.name}`; return `${instruction} ${packageEntity.name}`;
......
import { TrackingCategories } from './constants'; import { TrackingCategories } from './constants';
export const packageTypeToTrackCategory = type => export const packageTypeToTrackCategory = type =>
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
`UI::${TrackingCategories[type]}`; `UI::${TrackingCategories[type]}`;
export const beautifyPath = path => (path ? path.split('/').join(' / ') : ''); export const beautifyPath = path => (path ? path.split('/').join(' / ') : '');
...@@ -19,13 +19,13 @@ export default class UsernameSuggester { ...@@ -19,13 +19,13 @@ export default class UsernameSuggester {
this.usernameElement = document.getElementById(targetElement); this.usernameElement = document.getElementById(targetElement);
if (!this.usernameElement) { if (!this.usernameElement) {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
throw new Error('The target element is missing.'); throw new Error('The target element is missing.');
} }
this.apiPath = this.usernameElement.dataset.apiPath; this.apiPath = this.usernameElement.dataset.apiPath;
if (!this.apiPath) { if (!this.apiPath) {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
throw new Error('The API path was not specified.'); throw new Error('The API path was not specified.');
} }
......
import { s__ } from '~/locale'; import { s__ } from '~/locale';
export const ChildType = { export const ChildType = {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
Epic: 'Epic', Epic: 'Epic',
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
Issue: 'Issue', Issue: 'Issue',
}; };
......
...@@ -334,7 +334,7 @@ export const addItem = ({ state, dispatch, getters }) => { ...@@ -334,7 +334,7 @@ export const addItem = ({ state, dispatch, getters }) => {
dispatch('receiveAddItemFailure', { itemAddFailureType: itemAddFailureTypesMap.NOT_FOUND }); dispatch('receiveAddItemFailure', { itemAddFailureType: itemAddFailureTypesMap.NOT_FOUND });
} }
// Ignore 409 conflict when the issue or epic is already attached to epic // Ignore 409 conflict when the issue or epic is already attached to epic
/* eslint-disable @gitlab/i18n/no-non-i18n-strings */ /* eslint-disable @gitlab/require-i18n-strings */
else if ( else if (
response.status === httpStatusCodes.CONFLICT && response.status === httpStatusCodes.CONFLICT &&
response.data.message === 'Epic hierarchy level too deep' response.data.message === 'Epic hierarchy level too deep'
......
...@@ -105,17 +105,17 @@ export default { ...@@ -105,17 +105,17 @@ export default {
if (this.hasStartDate) { if (this.hasStartDate) {
if (this.presetTypeQuarters) { if (this.presetTypeQuarters) {
// CSS properties are a false positive: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/24 // CSS properties are a false positive: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/24
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
barStyles = `width: ${this.getTimelineBarWidthForQuarters( barStyles = `width: ${this.getTimelineBarWidthForQuarters(
roadmapItem, roadmapItem,
)}px; ${this.getTimelineBarStartOffsetForQuarters(roadmapItem)}`; )}px; ${this.getTimelineBarStartOffsetForQuarters(roadmapItem)}`;
} else if (this.presetTypeMonths) { } else if (this.presetTypeMonths) {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
barStyles = `width: ${this.getTimelineBarWidthForMonths()}px; ${this.getTimelineBarStartOffsetForMonths( barStyles = `width: ${this.getTimelineBarWidthForMonths()}px; ${this.getTimelineBarStartOffsetForMonths(
roadmapItem, roadmapItem,
)}`; )}`;
} else if (this.presetTypeWeeks) { } else if (this.presetTypeWeeks) {
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
barStyles = `width: ${this.getTimelineBarWidthForWeeks()}px; ${this.getTimelineBarStartOffsetForWeeks( barStyles = `width: ${this.getTimelineBarWidthForWeeks()}px; ${this.getTimelineBarStartOffsetForWeeks(
roadmapItem, roadmapItem,
)}`; )}`;
......
...@@ -56,13 +56,13 @@ export default { ...@@ -56,13 +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 */ /* eslint-disable-next-line @gitlab/require-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 */ /* eslint-disable-next-line @gitlab/require-i18n-strings */
return `left: ${(startDate / daysInMonth) * 100}%;`; return `left: ${(startDate / daysInMonth) * 100}%;`;
}, },
/** /**
......
...@@ -55,11 +55,11 @@ export default { ...@@ -55,11 +55,11 @@ export default {
) { ) {
return ''; return '';
} else if (startDay === 1) { } else if (startDay === 1) {
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */ /* eslint-disable-next-line @gitlab/require-i18n-strings */
return 'left: 0;'; return 'left: 0;';
} }
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */ /* eslint-disable-next-line @gitlab/require-i18n-strings */
return `left: ${(startDay / daysInQuarter) * 100}%;`; return `left: ${(startDay / daysInQuarter) * 100}%;`;
}, },
/** /**
......
...@@ -65,11 +65,11 @@ export default { ...@@ -65,11 +65,11 @@ export default {
) { ) {
return ''; return '';
} else if (startDate === firstDayOfWeek) { } else if (startDate === firstDayOfWeek) {
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */ /* eslint-disable-next-line @gitlab/require-i18n-strings */
return 'left: 0;'; return 'left: 0;';
} }
/* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */ /* eslint-disable-next-line @gitlab/require-i18n-strings */
return `left: ${startDate * dayWidth - dayWidth / 2}px;`; return `left: ${startDate * dayWidth - dayWidth / 2}px;`;
}, },
/** /**
......
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
</div> </div>
<div class="settings-content"> <div class="settings-content">
<!-- eslint-disable @gitlab/vue-i18n/no-bare-attribute-strings --> <!-- eslint-disable @gitlab/vue-require-i18n-attribute-strings -->
<p> <p>
<gl-sprintf :message="$options.i18n.introText"> <gl-sprintf :message="$options.i18n.introText">
<template #docsLink> <template #docsLink>
......
...@@ -66,7 +66,7 @@ export default { ...@@ -66,7 +66,7 @@ export default {
return { return {
variant: 'info', variant: 'info',
// False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26 // False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/26
// eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings // eslint-disable-next-line @gitlab/require-i18n-strings
rel: 'noopener noreferrer', rel: 'noopener noreferrer',
class: 'discover-button justify-content-center', class: 'discover-button justify-content-center',
'data-track-event': 'click_button', 'data-track-event': 'click_button',
......
/* eslint-disable @gitlab/i18n/no-non-i18n-strings */ /* eslint-disable @gitlab/require-i18n-strings */
/* /*
* Endpoint still returns 'approved' & 'blacklisted' * Endpoint still returns 'approved' & 'blacklisted'
......
...@@ -766,13 +766,11 @@ ...@@ -766,13 +766,11 @@
resolved "https://registry.yarnpkg.com/@gitlab/at.js/-/at.js-1.5.5.tgz#5f6bfe6baaef360daa9b038fa78798d7a6a916b4" resolved "https://registry.yarnpkg.com/@gitlab/at.js/-/at.js-1.5.5.tgz#5f6bfe6baaef360daa9b038fa78798d7a6a916b4"
integrity sha512-282Dn3SPVsUHVDhMsXgfnv+Rzog0uxecjttxGRQvxh25es1+xvkGQFsvJfkSKJ3X1kHVkSjKf+Tt5Rra+Jhp9g== integrity sha512-282Dn3SPVsUHVDhMsXgfnv+Rzog0uxecjttxGRQvxh25es1+xvkGQFsvJfkSKJ3X1kHVkSjKf+Tt5Rra+Jhp9g==
"@gitlab/eslint-config@^3.0.0": "@gitlab/eslint-plugin@^2.0.0":
version "3.0.0" version "2.0.0"
resolved "https://registry.yarnpkg.com/@gitlab/eslint-config/-/eslint-config-3.0.0.tgz#9a93662ffefb7792d5d0d96d876c316f2c393315" resolved "https://registry.yarnpkg.com/@gitlab/eslint-plugin/-/eslint-plugin-2.0.0.tgz#4eedd16cf95cf82dc359c1b220d4f5a08361df9c"
integrity sha512-wlMpcl4q4hTnvmdPB9yuD+ZIi39P2ZCSfp3LQYSvbSXCF3POfyjRRe4tK7cerKrawjmJmII8YvNnIg2Ip9eKnQ== integrity sha512-ctmsGnCuokhfh/5goLdz3NdBIUpwTMkx/17QxxutxkWW7yOGMPIY8Na+WhjnUSdst8Wjwzexc+snbh5NMs8H/A==
dependencies: dependencies:
"@gitlab/eslint-plugin-i18n" "^1.1.0"
"@gitlab/eslint-plugin-vue-i18n" "^2.0.0"
babel-eslint "^10.0.3" babel-eslint "^10.0.3"
eslint-config-airbnb-base "^14.0.0" eslint-config-airbnb-base "^14.0.0"
eslint-config-prettier "^6.10.0" eslint-config-prettier "^6.10.0"
...@@ -780,20 +778,7 @@ ...@@ -780,20 +778,7 @@
eslint-plugin-filenames "^1.3.2" eslint-plugin-filenames "^1.3.2"
eslint-plugin-import "^2.20.1" eslint-plugin-import "^2.20.1"
eslint-plugin-promise "^4.2.1" eslint-plugin-promise "^4.2.1"
eslint-plugin-vue "^6.0.1" eslint-plugin-vue "^6.2.1"
"@gitlab/eslint-plugin-i18n@^1.1.0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@gitlab/eslint-plugin-i18n/-/eslint-plugin-i18n-1.1.0.tgz#e494d599e644ce3a094ea85f87dbbda41a924c5e"
integrity sha512-Cwm7sLtQnUDqvxE9Ez8UMslyosPCpMVLxBnFb+2n6QcBZmXRao4aNSVRkmlsDZYgYegWhOGn3Qq3MLy4BSqauQ==
dependencies:
requireindex "~1.1.0"
"@gitlab/eslint-plugin-vue-i18n@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@gitlab/eslint-plugin-vue-i18n/-/eslint-plugin-vue-i18n-2.0.0.tgz#5a01912d9d5a7524539d678f09cac6fa57d6d838"
integrity sha512-z72ysu5AgjL/oWPckvNrMWUnkcFJhtZT0oqeSgN97NyktrvYMMpAOjSSeu2Nv+HLTD5vk9w/fG3zskp/qgT+lw==
dependencies:
vue-eslint-parser "^7.0.0" vue-eslint-parser "^7.0.0"
"@gitlab/svgs@^1.113.0": "@gitlab/svgs@^1.113.0":
...@@ -4408,11 +4393,12 @@ eslint-plugin-promise@^4.2.1: ...@@ -4408,11 +4393,12 @@ eslint-plugin-promise@^4.2.1:
resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-4.2.1.tgz#845fd8b2260ad8f82564c1222fce44ad71d9418a" resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-4.2.1.tgz#845fd8b2260ad8f82564c1222fce44ad71d9418a"
integrity sha512-VoM09vT7bfA7D+upt+FjeBO5eHIJQBUWki1aPvB+vbNiHS3+oGIJGIeyBtKQTME6UPXXy3vV07OL1tHd3ANuDw== integrity sha512-VoM09vT7bfA7D+upt+FjeBO5eHIJQBUWki1aPvB+vbNiHS3+oGIJGIeyBtKQTME6UPXXy3vV07OL1tHd3ANuDw==
eslint-plugin-vue@^6.0.1: eslint-plugin-vue@^6.2.1:
version "6.1.2" version "6.2.2"
resolved "https://registry.yarnpkg.com/eslint-plugin-vue/-/eslint-plugin-vue-6.1.2.tgz#4b05c28c83c0ec912669b64dbd998bb8bf692ef6" resolved "https://registry.yarnpkg.com/eslint-plugin-vue/-/eslint-plugin-vue-6.2.2.tgz#27fecd9a3a24789b0f111ecdd540a9e56198e0fe"
integrity sha512-M75oAB+2a/LNkLKRbeEaS07EjzjIUaV7/hYoHAfRFeeF8ZMmCbahUn8nQLsLP85mkar24+zDU3QW2iT1JRsACw== integrity sha512-Nhc+oVAHm0uz/PkJAWscwIT4ijTrK5fqNqz9QB1D35SbbuMG1uB6Yr5AJpvPSWg+WOw7nYNswerYh0kOk64gqQ==
dependencies: dependencies:
natural-compare "^1.4.0"
semver "^5.6.0" semver "^5.6.0"
vue-eslint-parser "^7.0.0" vue-eslint-parser "^7.0.0"
...@@ -9872,11 +9858,6 @@ require-package-name@^2.0.1: ...@@ -9872,11 +9858,6 @@ require-package-name@^2.0.1:
resolved "https://registry.yarnpkg.com/require-package-name/-/require-package-name-2.0.1.tgz#c11e97276b65b8e2923f75dabf5fb2ef0c3841b9" resolved "https://registry.yarnpkg.com/require-package-name/-/require-package-name-2.0.1.tgz#c11e97276b65b8e2923f75dabf5fb2ef0c3841b9"
integrity sha1-wR6XJ2tluOKSP3Xav1+y7ww4Qbk= integrity sha1-wR6XJ2tluOKSP3Xav1+y7ww4Qbk=
requireindex@~1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/requireindex/-/requireindex-1.1.0.tgz#e5404b81557ef75db6e49c5a72004893fe03e162"
integrity sha1-5UBLgVV+91225JxacgBIk/4D4WI=
requires-port@^1.0.0: requires-port@^1.0.0:
version "1.0.0" version "1.0.0"
resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff"
......
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