Skip to content

Commit

Permalink
a few more refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
cursorweb committed Jan 14, 2024
1 parent b8233b4 commit cfbb865
Show file tree
Hide file tree
Showing 15 changed files with 4 additions and 12 deletions.
11 changes: 1 addition & 10 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,11 @@ module.exports = {
"no-else-return": 2,
"no-extra-bind": 2,
"no-multi-spaces": 2,
"no-useless-return": 2,
"yoda": 2,
"no-undef-init": 2,
"prefer-const": 2,
"prefer-template": 2,
"prefer-arrow-callback": 2,
"no-var": 2,
"no-useless-constructor": 2,
"spaced-comment": 2,
"switch-colon-spacing": 2,
"quote-props": [2, "consistent-as-needed"],
"prefer-exponentiation-operator": 2,
"no-unneeded-ternary": 2,
"no-lonely-if": 2,
"key-spacing": 2,
"func-call-spacing": 2,
"keyword-spacing": 2,
Expand Down Expand Up @@ -68,7 +59,7 @@ module.exports = {
"no-shadow": 0,
"@typescript-eslint/no-unused-vars": [2, { argsIgnorePattern: "^_" }],
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-non-null-assertion": 1,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-namespace": 0
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/util/data/drops.ts → src/data/items/drops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as Discord from "discord.js";
import Big from "bignumber.js";
import { brackets, pluralb, commanum, hidden, Database } from "../../global.js";
import { items } from "./item.js";
import { ActionType, checkQuest } from "./quests.js";
import { ActionType, checkQuest } from "../quests.js";

const code: DropItem[] = [{
chance: () => Math.random() < 0.1,
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/util/data/quests.ts → src/data/quests.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Big from "bignumber.js";
import { APIEmbedField } from "discord.js";
import { Database, brackets, addMs, random, progress } from "../../global.js";
import { ItemEnum } from "./item.js";
import { ItemEnum } from "./items/item.js";

export const qDiff = ["easy", "medium", "hard"];

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions src/util/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// export all

0 comments on commit cfbb865

Please sign in to comment.