Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0.0-alpha.3 RC - Update Dependencies and use Biome for Linting and Formatting #436

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"$schema": "https://swc.rs/schema.json",
"exclude": "node_modules/",
"sourceMaps": true,
"module": {
"type": "commonjs"
},
"jsc": {
"target": "es2016",
"target": "esnext",
"baseUrl": "./src",
"paths": {
"@engine/*": ["./engine/*"],
Expand All @@ -20,4 +20,4 @@
"dynamicImport": false
}
}
}
}
8 changes: 4 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"editor.tabSize": 4,
"files.trimTrailingWhitespace": true,
"files.trimFinalNewlines": true,
"files.insertFinalNewline": true
"editor.tabSize": 4,
"files.trimTrailingWhitespace": true,
"files.trimFinalNewlines": true,
"files.insertFinalNewline": true
}
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
FROM node:20
FROM node:23
WORKDIR /usr/src/app

COPY package.json ./
COPY package-lock.json ./

RUN apt update
RUN apt install -y libsdl-pango-dev

RUN npm ci

COPY src ./src
Expand Down
51 changes: 51 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false,
"ignore": []
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 4
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"complexity": {
"recommended": true,
"noBannedTypes": "warn",
"noForEach": "off",
"noStaticOnlyClass": "off"
},
"suspicious": {
"recommended": true,
"noAssignInExpressions": "warn",
"noExplicitAny": "warn",
"noImplicitAnyLet": "warn",
"noUnsafeDeclarationMerging": "warn"
},
"style": {
"recommended": true,
"noInferrableTypes": "off",
"noNonNullAssertion": "warn",
"noParameterAssign": "warn",
"useImportType": "off"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "single"
}
}
}
2 changes: 1 addition & 1 deletion data/config/items/barrows/dharoks.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"rs:dharoks_axe" : {
"rs:dharoks_axe": {
"tradable": true,
"equippable": true,
"equipment_data": {
Expand Down
2 changes: 1 addition & 1 deletion data/config/items/currency.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"game_id": 995,
"tradable": true
}
}
}
104 changes: 52 additions & 52 deletions data/config/items/equipment/amulets.json
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
{
"rs:amulet_of_glory": {
"game_id": 1704,
"examine": "A very powerful dragonstone amulet.",
"tradable": true,
"weight": 0.01,
"equippable": true,
"equipment_data": {
"equipment_slot": "neck",
"offensive_bonuses": {
"stab": 10,
"slash": 10,
"crush": 10,
"magic": 10,
"ranged": 10
},
"defensive_bonuses": {
"stab": 3,
"slash": 3,
"crush": 3,
"magic": 3,
"ranged": 3
},
"skill_bonuses": {
"prayer": 3,
"strength": 6,
"ranged": 0,
"magic": 0
}
},
"variations": [
{
"game_id": 1706,
"examine": "A dragonstone amulet with 1 magic charge.",
"suffix": "charged_1"
},
{
"game_id": 1708,
"examine": "A dragonstone amulet with 2 magic charges.",
"suffix": "charged_2"
},
{
"game_id": 1710,
"examine": "A dragonstone amulet with 3 magic charges.",
"suffix": "charged_3"
},
{
"game_id": 1712,
"examine": "A dragonstone amulet with 4 magic charges.",
"suffix": "charged_4"
}
]
}
"rs:amulet_of_glory": {
"game_id": 1704,
"examine": "A very powerful dragonstone amulet.",
"tradable": true,
"weight": 0.01,
"equippable": true,
"equipment_data": {
"equipment_slot": "neck",
"offensive_bonuses": {
"stab": 10,
"slash": 10,
"crush": 10,
"magic": 10,
"ranged": 10
},
"defensive_bonuses": {
"stab": 3,
"slash": 3,
"crush": 3,
"magic": 3,
"ranged": 3
},
"skill_bonuses": {
"prayer": 3,
"strength": 6,
"ranged": 0,
"magic": 0
}
},
"variations": [
{
"game_id": 1706,
"examine": "A dragonstone amulet with 1 magic charge.",
"suffix": "charged_1"
},
{
"game_id": 1708,
"examine": "A dragonstone amulet with 2 magic charges.",
"suffix": "charged_2"
},
{
"game_id": 1710,
"examine": "A dragonstone amulet with 3 magic charges.",
"suffix": "charged_3"
},
{
"game_id": 1712,
"examine": "A dragonstone amulet with 4 magic charges.",
"suffix": "charged_4"
}
]
}
}
6 changes: 2 additions & 4 deletions data/config/items/equipment/halberd.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"style": "halberd"
}
}

},
"rs:steel_halberd": {
"game_id": 3194,
Expand Down Expand Up @@ -261,8 +260,7 @@
},
"weapon_info": {
"style": "halberd"
}

}
}
}
}
}
Loading
Loading