Skip to content

Commit

Permalink
fixed linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ml054 committed Sep 5, 2023
1 parent f4f4340 commit 679726a
Show file tree
Hide file tree
Showing 16 changed files with 11 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import { shardingTodo } from "common/developmentHelper";
import { IndexStatus, IndexFilterCriteria, IndexType } from "components/models/indexes";
import { Button, Col, Input, PopoverBody, UncontrolledPopover } from "reactstrap";
import { Button, Input, PopoverBody, UncontrolledPopover } from "reactstrap";
import produce from "immer";
import { Icon } from "components/common/Icon";
import { MultiCheckboxToggle } from "components/common/MultiCheckboxToggle";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import useClientConfigurationFormController from "components/common/clientConfig
import { tryHandleSubmit } from "components/utils/common";
import classNames from "classnames";
import { RadioToggleWithIconInputItem } from "components/common/RadioToggle";
import { RichPanel, RichPanelHeader } from "components/common/RichPanel";
import { RichPanel } from "components/common/RichPanel";
import { useDirtyFlag } from "components/hooks/useDirtyFlag";
import { AboutViewAnchored, AboutViewHeading, AccordionItemWrapper } from "components/common/AboutView";
import { useAppSelector } from "components/store";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe("DocumentExpiration", () => {
});

it("is limit alert visible", async () => {
const { screen, fireClick } = rtlRender(<LicenseRestricted />);
const { screen } = rtlRender(<LicenseRestricted />);

const customExpirationFrequency = await screen.findByName("deleteFrequency");
expect(customExpirationFrequency).toBeEnabled();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export const DefaultDocumentExpiration: StoryObj<typeof DocumentExpiration> = {
};

export const LicenseRestricted: StoryObj<typeof DocumentExpiration> = {
name: "License Restricted",
render: () => {
const { databasesService } = mockServices;
const { license } = mockStore;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import React, { useEffect } from "react";
import { Alert, Button, Card, CardBody, Col, Form, Row } from "reactstrap";
import {
AboutViewAnchored,
AboutViewHeading,
AccordionItemLicensing,
AccordionItemWrapper,
} from "components/common/AboutView";
import { Alert, Card, CardBody, Col, Form, Row } from "reactstrap";
import { AboutViewAnchored, AboutViewHeading, AccordionItemWrapper } from "components/common/AboutView";
import { Icon } from "components/common/Icon";
import { FormInput, FormSwitch } from "components/common/Form";
import { SubmitHandler, useForm, useWatch } from "react-hook-form";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe("DocumentRefresh", () => {
});

it("is limit alert visible", async () => {
const { screen, fireClick } = rtlRender(<LicenseRestricted />);
const { screen } = rtlRender(<LicenseRestricted />);

const customRefreshFrequency = await screen.findByName("refreshFrequency");
expect(customRefreshFrequency).toBeEnabled();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export const DefaultDocumentRefresh: StoryObj<typeof DocumentRefresh> = {
};

export const LicenseRestricted: StoryObj<typeof DocumentRefresh> = {
name: "License Restricted",
render: () => {
const { databasesService } = mockServices;
const { license } = mockStore;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import React, { useEffect } from "react";
import { Alert, Button, Card, CardBody, Col, Form, Row } from "reactstrap";
import {
AboutViewAnchored,
AboutViewHeading,
AccordionItemLicensing,
AccordionItemWrapper,
} from "components/common/AboutView";
import { Alert, Card, CardBody, Col, Form, Row } from "reactstrap";
import { AboutViewAnchored, AboutViewHeading, AccordionItemWrapper } from "components/common/AboutView";
import { Icon } from "components/common/Icon";
import { FormInput, FormSwitch } from "components/common/Form";
import { SubmitHandler, useForm, useWatch } from "react-hook-form";
Expand Down Expand Up @@ -60,6 +55,7 @@ export default function DocumentRefresh({ db }: NonShardedViewProps) {
formValues.isRefreshFrequencyEnabled,
formValues.refreshFrequency,
setValue,
licenseType,
]);

const onSave: SubmitHandler<DocumentRefreshFormData> = async (formData) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { services } from "hooks/useServices";
import database from "models/resources/database";
import RevisionsConfiguration = Raven.Client.Documents.Operations.Revisions.RevisionsConfiguration;
import RevisionsCollectionConfiguration = Raven.Client.Documents.Operations.Revisions.RevisionsCollectionConfiguration;
import { RootState } from "components/store";
import { loadStatus } from "components/models/common";

export const documentRevisionsConfigNames = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import textColumn from "widgets/virtualGrid/columns/textColumn";
import virtualColumn from "widgets/virtualGrid/columns/virtualColumn";
import virtualGridController from "widgets/virtualGrid/virtualGridController";
import SubscriptionInfo = Raven.Server.Documents.TombstoneCleaner.TombstonesState.SubscriptionInfo;
import { Alert, Card } from "reactstrap";
import { Card } from "reactstrap";
import ButtonWithSpinner from "components/common/ButtonWithSpinner";
import useConfirm from "components/hooks/useConfirm";
import { FlexGrow } from "components/common/FlexGrow";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import PeriodicBackupStatus = Raven.Client.Documents.Operations.Backups.Periodic
import { loadableData } from "components/models/common";
import genUtils from "common/generalUtils";
import moment from "moment";
import { Badge, Button, Spinner } from "reactstrap";
import { Button, Spinner } from "reactstrap";
import { HrHeader } from "components/common/HrHeader";
import { RichPanel, RichPanelDetailItem, RichPanelDetails, RichPanelHeader } from "components/common/RichPanel";
import { FlexGrow } from "components/common/FlexGrow";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import React from "react";
import * as stories from "./OngoingTasksPage.stories";
import { composeStories, composeStory } from "@storybook/testing-react";
import { boundCopy } from "components/utils/common";
import { OngoingTaskRabbitMqSinkInfo } from "components/models/tasks";

const { EmptyView, FullView } = composeStories(stories);

Expand Down
1 change: 0 additions & 1 deletion src/Raven.Studio/typescript/test/stubs/IndexesStubs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import IndexProgress = Raven.Client.Documents.Indexes.IndexProgress;
import IndexUtils from "components/utils/IndexUtils";
import CollectionStats = Raven.Client.Documents.Indexes.IndexProgress.CollectionStats;
import IndexMergeResults = Raven.Server.Documents.Indexes.IndexMerging.IndexMergeResults;
import moment = require("moment/moment");

const statsFixture = require("../fixtures/indexes_stats.json");
const progressFixture: { Results: IndexProgress[] } = require("../fixtures/indexes_progress.json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import validationHelpers = require("viewmodels/common/validationHelpers");
import documentPreviewer = require("models/database/documents/documentPreviewer");
import queryUtil = require("common/queryUtil");
import getIndexesDefinitionsCommand = require("commands/database/index/getIndexesDefinitionsCommand");
import { highlight, languages } from "prismjs";
import patchDebugActions from "viewmodels/database/patch/patchDebugActions";

type testTabType = "preview" | "loaded" | "modified" | "deleted" | "output";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import dialogViewModelBase = require("viewmodels/dialogViewModelBase");
import aceEditorBindingHandler = require("common/bindingHelpers/aceEditorBindingHandler");
import EtlType = Raven.Client.Documents.Operations.ETL.EtlType;

class sinkScriptDefinitionPreview extends dialogViewModelBase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import activeDatabaseTracker = require("common/shell/activeDatabaseTracker");
import clusterTopologyManager = require("common/shell/clusterTopologyManager");
import licenseModel from "models/auth/licenseModel";
import { EditServerWideBackupInfoHub } from "./EditServerWideBackupInfoHub";
import React from "react";

class editServerWideBackup extends viewModelBase {

Expand Down

0 comments on commit 679726a

Please sign in to comment.