From 000d837531e0add3adae04e5168a21984912e723 Mon Sep 17 00:00:00 2001 From: jmfrancois Date: Fri, 29 Sep 2023 15:48:19 +0200 Subject: [PATCH] chore: review --- packages/design-docs/netlify.toml | 10 ++++++++++ packages/design-docs/src/StatusTable.tsx | 5 ++--- .../design-system/src/stories/icons/Icon.stories.tsx | 4 ---- packages/storybook-docs/package.json | 5 ++++- 4 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 packages/design-docs/netlify.toml diff --git a/packages/design-docs/netlify.toml b/packages/design-docs/netlify.toml new file mode 100644 index 0000000000..b66c43073d --- /dev/null +++ b/packages/design-docs/netlify.toml @@ -0,0 +1,10 @@ +[build] + ignore = "git log -1 --pretty=%B | grep dependabot" + +[[plugins]] +package = "@algolia/netlify-plugin-crawler" + [plugins.inputs] + branches = ['master'] + customDomain = "design.talend.com" + renderJavaScript = true + diff --git a/packages/design-docs/src/StatusTable.tsx b/packages/design-docs/src/StatusTable.tsx index 2fe31eba84..427135982a 100644 --- a/packages/design-docs/src/StatusTable.tsx +++ b/packages/design-docs/src/StatusTable.tsx @@ -1,9 +1,8 @@ import { Suspense } from 'react'; - -import theme from './StatusTable.module.scss'; - +// eslint-disable-next-line @talend/import-depth import statuses from '@talend/design-system/src/stories/status.json'; import { Statuses, ComponentStatuses } from '@talend/storybook-docs'; +import theme from './StatusTable.module.scss'; function toTitleCase(value: string) { return value diff --git a/packages/design-system/src/stories/icons/Icon.stories.tsx b/packages/design-system/src/stories/icons/Icon.stories.tsx index 17859d1b29..6d8150dbf2 100644 --- a/packages/design-system/src/stories/icons/Icon.stories.tsx +++ b/packages/design-system/src/stories/icons/Icon.stories.tsx @@ -1,7 +1,3 @@ -import { useState, useEffect } from 'react'; -import type { ChangeEvent, FormEvent } from 'react'; -import { IconGallery, IconItem } from '@storybook/blocks'; - import { StackHorizontal, Icon } from '../../'; import { AllIconsTemplate } from './Icons'; diff --git a/packages/storybook-docs/package.json b/packages/storybook-docs/package.json index 42d21eb778..508125ab6f 100644 --- a/packages/storybook-docs/package.json +++ b/packages/storybook-docs/package.json @@ -28,7 +28,10 @@ }, "dependencies": { "@talend/design-system": "^7.15.0", - "@talend/design-tokens": "^2.9.0" + "@talend/design-tokens": "^2.9.0", + "classnames": "^2.3.1", + "figma-js": "^1.16.0", + "react": "^17.0.2" }, "devDependencies": { "@talend/scripts-core": "^14.0.1"