Skip to content

Commit ae8c97d

Browse files
committed
SPT v3.10 Compatibility
1 parent 1c45c1d commit ae8c97d

File tree

353 files changed

+5598
-4827
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

353 files changed

+5598
-4827
lines changed

.buildignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
/.buildignore
22
/.DS_Store
33
/.editorconfig
4-
/.eslintignore
5-
/.eslintrc.json
64
/.git
75
/.github
86
/.gitignore
97
/.gitlab
108
/.nvmrc
11-
/.prettierrc
12-
/.vscode
9+
/biome.jsonc
1310
/build.mjs
1411
/dist
1512
/images

.eslintignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 96 deletions
This file was deleted.

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
github: refringe
2+
ko_fi: refringe

.github/ISSUE_TEMPLATE/GENERAL.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,9 @@ body:
3030
label: SPT Version
3131
description: What version of SPT are you running?
3232
options:
33-
- 3.9.1
34-
- 3.9.0
35-
- 3.8.3
36-
- 3.8.2
37-
- 3.8.1
38-
- 3.8.0
33+
- 3.10
34+
- 3.9
35+
- 3.8
3936
validations:
4037
required: true
4138
- type: textarea

.github/README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ _\*Many of these options are configurable._
1818
## To install:
1919

2020
1. Decompress the contents of the download into your root SPT directory.
21-
2. Open the `CustomRaidTimes/config/config.json5` file to adjust configuration options.
21+
2. Open the `refringe-customraidtimes/config/config.json5` file to adjust configuration options.
2222
3. Leave a review and let me know what you think.
2323

2424
If you experience any problems, please [submit a detailed bug report](https://github.com/refringe/CustomRaidTimes/issues).
@@ -27,14 +27,12 @@ If you experience any problems, please [submit a detailed bug report](https://gi
2727

2828
This project has been built in [Visual Studio Code](https://code.visualstudio.com/) (VSC) using [Node.js](https://nodejs.org/). If you are unfamiliar with Node.js, I recommend using [NVM](https://github.com/nvm-sh/nvm) to manage installation and switching versions. If you do not wish to use NVM, you will need to install the version of Node.js listed within the `.nvmrc` file manually.
2929

30-
This project uses [Prettier](https://prettier.io/) to format code on save.
30+
This project uses Biome to format code on save.
3131

3232
To build the project locally:
3333

3434
1. Clone the repository.
3535
2. Open the `mod.code-workspace` file in Visual Studio Code (VSC).
36-
3. Install the [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) VSC extension.
37-
4. Install the [JSON5](https://marketplace.visualstudio.com/items?itemName=mrmlnc.vscode-json5) VSC extension.
38-
5. Run `nvm use` in the terminal.
39-
6. Run `npm install` in the terminal.
40-
7. Run `npm run build` in the terminal.
36+
3. Run `nvm use` in the terminal.
37+
4. Run `npm install` in the terminal.
38+
5. Run `npm run build` in the terminal.

.prettierrc

Lines changed: 0 additions & 16 deletions
This file was deleted.

biome.jsonc

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3+
"organizeImports": {
4+
"enabled": true
5+
},
6+
"files": {
7+
"ignore": [".editorconfig", ".git/*", "dist/*", "node_modules/*"]
8+
},
9+
"linter": {
10+
"enabled": true,
11+
"rules": {
12+
"recommended": true,
13+
"style": {
14+
"useImportType": "off"
15+
}
16+
}
17+
},
18+
"formatter": {
19+
"enabled": true,
20+
"formatWithErrors": false,
21+
"ignore": [],
22+
"attributePosition": "auto",
23+
"indentStyle": "space",
24+
"indentWidth": 4,
25+
"lineWidth": 120,
26+
"lineEnding": "lf"
27+
},
28+
"javascript": {
29+
"formatter": {
30+
"arrowParentheses": "always",
31+
"bracketSameLine": false,
32+
"bracketSpacing": true,
33+
"jsxQuoteStyle": "double",
34+
"quoteProperties": "asNeeded",
35+
"semicolons": "always",
36+
"trailingCommas": "all"
37+
},
38+
"parser": {
39+
"unsafeParameterDecoratorsEnabled": true
40+
}
41+
},
42+
"json": {
43+
"formatter": {
44+
"trailingCommas": "none"
45+
}
46+
},
47+
"overrides": [
48+
{
49+
"include": ["tests/*"],
50+
"linter": {
51+
"rules": {
52+
"suspicious": {
53+
"noExplicitAny": "off"
54+
}
55+
}
56+
}
57+
}
58+
]
59+
}

build.mjs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
* @version v1.0.1
3030
*/
3131

32-
import archiver from "archiver";
33-
import fs from "fs-extra";
34-
import ignore from "ignore";
3532
import os from "node:os";
3633
import path, { dirname } from "node:path";
3734
import { fileURLToPath } from "node:url";
35+
import archiver from "archiver";
36+
import fs from "fs-extra";
37+
import ignore from "ignore";
3838
import winston from "winston";
3939

4040
// Get the command line arguments to determine whether to use verbose logging.
@@ -61,9 +61,9 @@ const logger = winston.createLogger({
6161
},
6262
format: winston.format.combine(
6363
winston.format.colorize(),
64-
winston.format.printf(info => {
64+
winston.format.printf((info) => {
6565
return `${info.level}: ${info.message}`;
66-
})
66+
}),
6767
),
6868
transports: [
6969
new winston.transports.Console({
@@ -320,7 +320,7 @@ async function copyFiles(srcDir, destDir, ignoreHandler) {
320320
copyOperations.push(
321321
fs.copy(srcPath, destPath).then(() => {
322322
logger.log("info", `Copied: /${path.relative(process.cwd(), srcPath)}`);
323-
})
323+
}),
324324
);
325325
}
326326
}
@@ -360,7 +360,7 @@ async function createZipFile(directoryToZip, zipFilePath, containerDirName) {
360360

361361
// Set up an event listener for the 'warning' event to handle warnings appropriately, logging them or rejecting
362362
// the promise based on the error code.
363-
archive.on("warning", err => {
363+
archive.on("warning", (err) => {
364364
if (err.code === "ENOENT") {
365365
logger.log("warn", `Archiver issued a warning: ${err.code} - ${err.message}`);
366366
} else {
@@ -369,7 +369,7 @@ async function createZipFile(directoryToZip, zipFilePath, containerDirName) {
369369
});
370370

371371
// Set up an event listener for the 'error' event to reject the promise if any error occurs during archiving.
372-
archive.on("error", err => {
372+
archive.on("error", (err) => {
373373
reject(err);
374374
});
375375

config/config.json5

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@
2727
{ minutes: 60, weight: 10 }, // 60 minute raid, used 10 times more often than a weight of 1.
2828
{ minutes: 30, weight: { min: 2, max: 5 } }, // 30 minute raid, used 2-5 times more often than a weight of 1.
2929
{ minutes: { min: 15, max: 20 }, weight: 1 }, // 15-20 minute raid, used as often as any other weight of 1.
30-
31-
// If all you want is a single long raid time, you can uncomment the following line and comment out or
32-
// delete the three other lines above.
33-
// { minutes: 360, weight: 1 }, // 6 hour raid (360 minutes).
3430
],
3531

3632
// Custom raid times for specific locations. Used when `overrideAll` is set to `false`.

0 commit comments

Comments
 (0)