Skip to content

Commit

Permalink
Cleanup lint and unused files
Browse files Browse the repository at this point in the history
  • Loading branch information
Kruhlmann committed Nov 1, 2023
1 parent 9b4eb61 commit 7dece53
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 107 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = {
"plugin:@typescript-eslint/recommended",
"./node_modules/gts/",
"plugin:unicorn/recommended",
"plugin:import/recommended"
],
env: {
es6: true,
Expand Down
39 changes: 0 additions & 39 deletions .estlinrrc.js

This file was deleted.

5 changes: 0 additions & 5 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,8 @@
"singleQuote":false,
"trailingComma":"all",
"bracketSpacing":true,
"jsxBracketSameLine":false,
"arrowParens":"always",
"requirePragma":false,
"insertPragma":false,
"proseWrap":"always",
"svelteSortOrder" : "scripts-markup-styles",
"svelteStrictMode": true,
"svelteBracketNewLine": true,
"svelteAllowShorthand": false,
}
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ENTRYPOINT=$(DIST)/index.js
TSC=./node_modules/.bin/tsc
TSC_WATCH=./node_modules/.bin/tsc-watch
ESLINT=./node_modules/.bin/eslint
PRETTIER=./node_modules/.bin/prettier
JEST=./node_modules/.bin/jest

TSC_FLAGS=
Expand Down Expand Up @@ -33,8 +34,10 @@ node_modules: package.json pnpm-lock.yaml

lint: node_modules
$(ESLINT) $(TS_SOURCES) $(TEST_SOURCES)
$(PRETTIER) $(TS_SOURCES) $(TEST_SOURCES)

fix: node_modules
$(PRETTIER) --write $(TS_SOURCES) $(TEST_SOURCES)
$(ESLINT) --fix $(TS_SOURCES) $(TEST_SOURCES)

dev: node_modules data.json
Expand Down
12 changes: 0 additions & 12 deletions src/item/description/sell_price.ts

This file was deleted.

14 changes: 7 additions & 7 deletions src/item/quality_color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import { ItemQuality } from "./quality";

export class QualityColor {
protected static readonly QUALITY_COLOR_TABLE: Record<ItemQuality, ColorResolvable> = {
Poor: 0x9D_9D_9D,
Common: 0xFF_FF_FF,
Uncommon: 0x1E_FF_00,
Rare: 0x00_70_DD,
Epic: 0xA3_35_EE,
Legendary: 0xFF_80_00,
Artifact: 0xE6_CC_80,
Poor: 0x9d_9d_9d,
Common: 0xff_ff_ff,
Uncommon: 0x1e_ff_00,
Rare: 0x00_70_dd,
Epic: 0xa3_35_ee,
Legendary: 0xff_80_00,
Artifact: 0xe6_cc_80,
};
protected readonly quality: ItemQuality;

Expand Down
16 changes: 0 additions & 16 deletions src/logging/loggers/async_file.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/logging/loggers/sync_file.ts

This file was deleted.

Empty file removed src/main/prod.ts
Empty file.
12 changes: 0 additions & 12 deletions src/message/color_table.ts

This file was deleted.

0 comments on commit 7dece53

Please sign in to comment.