Skip to content

Commit

Permalink
Merge pull request #10 from edisontim/fix/vscode-lint
Browse files Browse the repository at this point in the history
Fix vscode auto lint
  • Loading branch information
bob0005 authored Sep 7, 2024
2 parents 6de2d7e + 1663190 commit e9c3a60
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
"editor.wordWrap": "on",
"cairo1.enableLanguageServer": true,
"cairo1.enableScarb": true,
"cairo1.languageServerPath": "/Users/os/.asdf/shims/scarb-cairo-language-server"
"cairo1.languageServerPath": "/Users/os/.asdf/shims/scarb-cairo-language-server",
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.organizeImports": "explicit"
}
}
6 changes: 1 addition & 5 deletions ui/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"editor.formatOnSave": true,
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.organizeImports": "explicit"
}
"typescript.enablePromptUseWorkspaceTsdk": true
}
4 changes: 2 additions & 2 deletions ui/src/app/components/encounters/EncounterTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import LootIcon from "@/app/components/icons/LootIcon";
import useAdventurerStore from "@/app/hooks/useAdventurerStore";
import { useQueriesStore } from "@/app/hooks/useQueryStore";
import useUIStore from "@/app/hooks/useUIStore";
import { AdventurerClass } from "@/app/lib/classes";
import { vitalityIncrease } from "@/app/lib/constants";
import { GameData } from "@/app/lib/data/GameData";
import { calculateLevel, getItemData, getItemPrice } from "@/app/lib/utils";
Expand All @@ -22,10 +23,9 @@ import {
getOutcomesWithPath,
listAllEncounters,
} from "@/app/lib/utils/processFutures";
import { Item } from "@/app/types";
import React, { useMemo, useState } from "react";
import Paths from "./Paths";
import { AdventurerClass } from "@/app/lib/classes";
import { Item } from "@/app/types";

const EncounterTable = () => {
const adventurer = useAdventurerStore((state) => state.adventurer);
Expand Down
12 changes: 6 additions & 6 deletions ui/src/app/components/encounters/Paths.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
import LootIcon from "@/app/components/icons/LootIcon";
import React, { useState } from "react";
import { Step } from "@/app/lib/utils/processFutures";
import { calculateLevel } from "@/app/lib/utils";
import { AdventurerClass } from "@/app/lib/classes";
import { Item } from "@/app/types";
import {
BladeIcon,
BludgeonIcon,
Expand All @@ -16,7 +10,13 @@ import {
MagicIcon,
MetalIcon,
} from "@/app/components/icons/Icons";
import LootIcon from "@/app/components/icons/LootIcon";
import { AdventurerClass } from "@/app/lib/classes";
import { GameData } from "@/app/lib/data/GameData";
import { calculateLevel } from "@/app/lib/utils";
import { Step } from "@/app/lib/utils/processFutures";
import { Item } from "@/app/types";
import React, { useState } from "react";

type PathProps = {
adventurerEntropy: bigint;
Expand Down

0 comments on commit e9c3a60

Please sign in to comment.