Skip to content
代码片段 群组 项目
提交 62245a1d 编辑于 作者: Paul Gascou-Vaillancourt's avatar Paul Gascou-Vaillancourt
浏览文件

Disable @gitlab/require-i18n-strings in all stories

This disables the @gitlab/require-i18n-strings ESLint rule in all
stories files so that we don't have to disable it manually in each
individual file.
上级 a487280d
No related branches found
No related tags found
无相关合并请求
显示
1 个添加15 个删除
...@@ -163,6 +163,7 @@ overrides: ...@@ -163,6 +163,7 @@ overrides:
- '*.stories.js' - '*.stories.js'
rules: rules:
filenames/match-regex: off filenames/match-regex: off
'@gitlab/require-i18n-strings': off
- files: - files:
- '*.graphql' - '*.graphql'
plugins: plugins:
......
...@@ -11,7 +11,6 @@ const Template = (_, { argTypes }) => ({ ...@@ -11,7 +11,6 @@ const Template = (_, { argTypes }) => ({
template: '<content-editor v-bind="$props" @initialized="loadContent" />', template: '<content-editor v-bind="$props" @initialized="loadContent" />',
methods: { methods: {
loadContent(contentEditor) { loadContent(contentEditor) {
// eslint-disable-next-line @gitlab/require-i18n-strings
contentEditor.setSerializedContent('Hello content editor'); contentEditor.setSerializedContent('Hello content editor');
}, },
}, },
......
...@@ -13,6 +13,5 @@ const Template = (args, { argTypes }) => ({ ...@@ -13,6 +13,5 @@ const Template = (args, { argTypes }) => ({
export const Default = Template.bind({}); export const Default = Template.bind({});
Default.args = { Default.args = {
// eslint-disable-next-line @gitlab/require-i18n-strings
code: `git commit -a "Message"\ngit push`, code: `git commit -a "Message"\ngit push`,
}; };
/* eslint-disable @gitlab/require-i18n-strings */
import ConfirmDanger from './confirm_danger.vue'; import ConfirmDanger from './confirm_danger.vue';
export default { export default {
......
/* eslint-disable @gitlab/require-i18n-strings */
import { __ } from '~/locale'; import { __ } from '~/locale';
import DropdownWidget from './dropdown_widget.vue'; import DropdownWidget from './dropdown_widget.vue';
......
/* eslint-disable @gitlab/require-i18n-strings */
import PaginationBar from './pagination_bar.vue'; import PaginationBar from './pagination_bar.vue';
export default { export default {
......
/* eslint-disable @gitlab/require-i18n-strings */
import TodoButton from './todo_button.vue'; import TodoButton from './todo_button.vue';
export default { export default {
......
/* eslint-disable @gitlab/require-i18n-strings */
import TooltipOnTruncate from './tooltip_on_truncate.vue'; import TooltipOnTruncate from './tooltip_on_truncate.vue';
const defaultWidth = '250px'; const defaultWidth = '250px';
......
/* eslint-disable @gitlab/require-i18n-strings */
import { OBSTACLE_TYPES } from './constants'; import { OBSTACLE_TYPES } from './constants';
import UserDeletionObstaclesList from './user_deletion_obstacles_list.vue'; import UserDeletionObstaclesList from './user_deletion_obstacles_list.vue';
......
/* eslint-disable @gitlab/require-i18n-strings */
import { SEVERITY_LEVELS_GRAPHQL } from 'ee/security_dashboard/store/constants'; import { SEVERITY_LEVELS_GRAPHQL } from 'ee/security_dashboard/store/constants';
import { REPORT_TYPES } from './constants'; import { REPORT_TYPES } from './constants';
import VulnerabilityDetailsGraphql from './index.vue'; import VulnerabilityDetailsGraphql from './index.vue';
......
...@@ -16,7 +16,6 @@ const Template = (_, { argTypes }) => ({ ...@@ -16,7 +16,6 @@ const Template = (_, { argTypes }) => ({
}); });
export const Default = Template.bind({}); export const Default = Template.bind({});
/* eslint-disable @gitlab/require-i18n-strings */
Default.args = { Default.args = {
usageValue: '1,400', usageValue: '1,400',
totalValue: '1,500', totalValue: '1,500',
......
/* eslint-disable @gitlab/require-i18n-strings */
import SurveyBanner from './survey_banner.vue'; import SurveyBanner from './survey_banner.vue';
export default { export default {
......
/* eslint-disable @gitlab/require-i18n-strings */
import { merge } from 'lodash'; import { merge } from 'lodash';
import { SEVERITY_LEVELS } from 'ee/security_dashboard/store/constants'; import { SEVERITY_LEVELS } from 'ee/security_dashboard/store/constants';
import { SUPPORTING_MESSAGE_TYPES } from 'ee/vulnerabilities/constants'; import { SUPPORTING_MESSAGE_TYPES } from 'ee/vulnerabilities/constants';
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册