From da9d9085cc40437251f88dccabd97d685db865c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Mon, 24 May 2021 12:33:12 +0100 Subject: [PATCH] fix(ui): remove excludes from tsconfig --- ui/src/Components/MainModal/index.stories.tsx | 2 -- ui/src/Components/ManagedSilence/index.stories.tsx | 2 -- ui/src/Components/NavBar/index.stories.tsx | 2 -- ui/src/Components/OverviewModal/index.stories.tsx | 2 +- ui/src/Components/SilenceModal/index.stories.tsx | 4 +++- ui/tsconfig.json | 3 +-- 6 files changed, 5 insertions(+), 10 deletions(-) diff --git a/ui/src/Components/MainModal/index.stories.tsx b/ui/src/Components/MainModal/index.stories.tsx index 4328a5f68..17759f472 100644 --- a/ui/src/Components/MainModal/index.stories.tsx +++ b/ui/src/Components/MainModal/index.stories.tsx @@ -1,5 +1,3 @@ -import React from "react"; - import { storiesOf } from "@storybook/react"; import fetchMock from "fetch-mock"; diff --git a/ui/src/Components/ManagedSilence/index.stories.tsx b/ui/src/Components/ManagedSilence/index.stories.tsx index 1e886ddc6..fdb002025 100644 --- a/ui/src/Components/ManagedSilence/index.stories.tsx +++ b/ui/src/Components/ManagedSilence/index.stories.tsx @@ -1,5 +1,3 @@ -import React from "react"; - import { storiesOf } from "@storybook/react"; import { MockSilence } from "../../__fixtures__/Alerts"; diff --git a/ui/src/Components/NavBar/index.stories.tsx b/ui/src/Components/NavBar/index.stories.tsx index dcb9afde5..9c5611206 100644 --- a/ui/src/Components/NavBar/index.stories.tsx +++ b/ui/src/Components/NavBar/index.stories.tsx @@ -1,5 +1,3 @@ -import React from "react"; - import { storiesOf } from "@storybook/react"; import { diff --git a/ui/src/Components/OverviewModal/index.stories.tsx b/ui/src/Components/OverviewModal/index.stories.tsx index a000d9647..a8497bfc0 100644 --- a/ui/src/Components/OverviewModal/index.stories.tsx +++ b/ui/src/Components/OverviewModal/index.stories.tsx @@ -1,4 +1,4 @@ -import React, { FC } from "react"; +import { FC } from "react"; import { storiesOf } from "@storybook/react"; diff --git a/ui/src/Components/SilenceModal/index.stories.tsx b/ui/src/Components/SilenceModal/index.stories.tsx index 76a6fcea9..bae6a759a 100644 --- a/ui/src/Components/SilenceModal/index.stories.tsx +++ b/ui/src/Components/SilenceModal/index.stories.tsx @@ -1,4 +1,4 @@ -import React, { FC } from "react"; +import { FC } from "react"; import fetchMock from "fetch-mock"; @@ -249,11 +249,13 @@ storiesOf("SilenceModal", module) name: "thisIsAveryLongNameToTestMatcherWrapping", value: "valueIsAlsoAbitLong", isRegex: false, + isEqual: true, }); silence.matchers.push({ name: "alertname", value: "(foo1|foo2|foo3|foo4)", isRegex: true, + isEqual: true, }); silence.id = `silence${index}`; silences.push({ diff --git a/ui/tsconfig.json b/ui/tsconfig.json index d1213febd..2d74f87cb 100644 --- a/ui/tsconfig.json +++ b/ui/tsconfig.json @@ -18,6 +18,5 @@ "noFallthroughCasesInSwitch": true, "noUnusedLocals": true }, - "include": ["src"], - "exclude": ["**/*.stories.tsx"] + "include": ["src"] }