Skip to content

Commit

Permalink
RavenDB-22581 prettier / eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
ml054 committed Jul 17, 2024
1 parent 3934479 commit 5d826af
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions src/Raven.Studio/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ customHooksToMock.forEach((name: string) => {
});

const config: StorybookConfig = {

babel: async (options) => {
options.plugins ??= [];
options.plugins.push((require as any).resolve("./import_plugin.js"));

return {
...options,
presets: [
...(options.presets ?? []),
[
"@babel/preset-react", {
runtime: 'automatic',
},
"preset-react-jsx-transform"
"@babel/preset-react",
{
runtime: "automatic",
},
"preset-react-jsx-transform",
],
],
sourceType: "unambiguous",
Expand All @@ -42,7 +42,7 @@ const config: StorybookConfig = {
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/addon-webpack5-compiler-babel"
"@storybook/addon-webpack5-compiler-babel",
],

framework: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function ButtonWithSpinner(props: ButtonWithSpinnerProps) {
disabled={disabled || isSpinning}
>
{isSpinning ? (
<Spinner size="sm" className={spinnerMargin ?? children != null ? "me-1" : "m-0"} />
<Spinner size="sm" className={(spinnerMargin ?? children != null) ? "me-1" : "m-0"} />
) : (
IconElement
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function getFormattedTime(date: Date): string {

function ItemWithTooltip(props: ItemWithTooltipProps) {
const { nodeInfo, sharded, openFaulty, showStaleReason, globalIndexingStatus, index } = props;
const entriesCount = nodeInfo.details?.faulty ? "n/a" : nodeInfo.details?.entriesCount ?? "";
const entriesCount = nodeInfo.details?.faulty ? "n/a" : (nodeInfo.details?.entriesCount ?? "");

const shard = (
<div className="top shard">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useAppSelector } from "components/store";
import DatabaseUtils from "components/utils/DatabaseUtils";
import { useState } from "react";
import { useAsync, useAsyncCallback } from "react-async-hook";
import { compareSets, sortBy } from "common/typeUtils";
import { compareSets } from "common/typeUtils";

interface LocationStats {
databaseId: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ export function OngoingTasksPage() {
.filter((x) => selectedTaskIds.includes(x.shared.taskId))
.map((x) => x.shared);

const { replicationHubs: _, ...filteredWithoutReplicationHubs } = filteredTasks;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { replicationHubs: ignored, ...filteredWithoutReplicationHubs } = filteredTasks;
const filteredDatabaseTaskIds = Object.values(filteredWithoutReplicationHubs)
.flat()
.filter((x) => !x.shared.serverWide)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

import clusterNode = require("models/database/cluster/clusterNode");
import { sortBy } from "common/typeUtils";
import { ClusterNode } from "components/common/shell/clusterSlice";

class clusterTopology {
leader = ko.observable<string>();
Expand Down

0 comments on commit 5d826af

Please sign in to comment.