Skip to content

Commit

Permalink
chore: Add eslint curly rule (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-almonacid authored Oct 25, 2023
1 parent 35dc7d1 commit 19b76fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@
"caseInsensitive": true
}
}
]
],
"curly": ["error", "multi-line"]
},
"overrides": [
{
Expand Down
3 changes: 2 additions & 1 deletion packages/frontend/src/components/tvl/TvlItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export const ProtocolTvlItem: FC<IProtocolTvlProps> = ({
* 2-row per cell layout
* Improves UI when little space available
*/
if (twoRowCellLayout)
if (twoRowCellLayout) {
return (
<div className="flex flex-col flex-[1_auto] py-[10px] px-0">
<div className="flex flex-row flex-[1_auto] py-[10px] px-[15px]">
Expand Down Expand Up @@ -249,6 +249,7 @@ export const ProtocolTvlItem: FC<IProtocolTvlProps> = ({
</div>
</div>
);
}

/**
* Standard table view
Expand Down
7 changes: 3 additions & 4 deletions packages/ui-kit/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import { IconButton } from "./src/components/buttons/IconButton";
import { NavTabButton } from "./src/components/buttons/NavTabButton";
import { TabButton } from "./src/components/buttons/TabButton";
import { ViewTabButton } from "./src/components/buttons/ViewTabButton";
import { Carousel } from "./src/components/carousel/Carousel";
import { CarouselImage } from "./src/components/carousel/CarouselImage";
import { Lightbox } from "./src/components/carousel/Lightbox";
import {
ApexAreaChart,
ApexBarChart,
Expand Down Expand Up @@ -51,10 +54,6 @@ import {
HRElement,
listItemVariants,
} from "./src/components/listItem/ListItem";
import { Carousel } from "./src/components/carousel/Carousel";
import { Lightbox } from "./src/components/carousel/Lightbox";
import { CarouselImage } from "./src/components/carousel/CarouselImage";
import { KeyValueTable } from "./src/components/table/KeyValueTable";
import { NoItems } from "./src/components/listItem/NoItems";
import { ErrorModal } from "./src/components/modal/ErrorModal";
import { Modal } from "./src/components/modal/Modal";
Expand Down

0 comments on commit 19b76fa

Please sign in to comment.