Sets prettier to run on the repo (#91379)

Prettier (an auto formatter) is set to only run within the tgui folder
currently. This removes that limitation, allowing it to automatically
format all supported files in the repo (.js, .html, .yml
[etc](https://prettier.io/docs/))

I made a few exceptions for bundled and generated files
I'm of the opinion that code should look uniform and am lazy enough to
want CTRL-S to format files without having to think beyond that
This commit is contained in:
Jeremiah
2025-05-29 21:23:59 -07:00
committed by Roxy
parent a1705ffe42
commit a5a4b83a25
416 changed files with 6993 additions and 6667 deletions

10
.vscode/launch.json vendored
View File

@@ -82,10 +82,7 @@
"request": "launch",
"program": "${command:dreammaker.returnDreamDaemonPath}",
"cwd": "${workspaceRoot}",
"args": [
"${command:dreammaker.getFilenameDmb}",
"-trusted"
],
"args": ["${command:dreammaker.getFilenameDmb}", "-trusted"],
"preLaunchTask": "Build All"
},
{
@@ -94,10 +91,7 @@
"request": "launch",
"program": "${command:dreammaker.returnDreamDaemonPath}",
"cwd": "${workspaceRoot}",
"args": [
"${command:dreammaker.getFilenameDmb}",
"-trusted"
],
"args": ["${command:dreammaker.getFilenameDmb}", "-trusted"],
"preLaunchTask": "Build All (low memory mode)"
},
{

View File

@@ -3,7 +3,7 @@
"eslint.workingDirectories": ["./tgui"],
"prettier.prettierPath": "./tgui/.yarn/sdks/prettier/index.cjs",
"typescript.tsdk": "./tgui/.yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"typescript.enablePromptUseWorkspaceTsdk": true,
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true

93
.vscode/tasks.json vendored
View File

@@ -12,11 +12,7 @@
"DM_EXE": "${config:dreammaker.byondPath}"
}
},
"problemMatcher": [
"$dreammaker",
"$tsc",
"$eslint-stylish"
],
"problemMatcher": ["$dreammaker", "$tsc", "$eslint-stylish"],
"group": {
"kind": "build",
"isDefault": true
@@ -37,11 +33,7 @@
"DM_EXE": "${config:dreammaker.byondPath}"
}
},
"problemMatcher": [
"$dreammaker",
"$tsc",
"$eslint-stylish"
],
"problemMatcher": ["$dreammaker", "$tsc", "$eslint-stylish"],
"group": {
"kind": "build"
},
@@ -51,21 +43,27 @@
{
"type": "process",
"command": "tools/build/build",
"args": ["-DTESTING","-DREAGENTS_TESTING","-DTIMER_DEBUG","-DREFERENCE_DOING_IT_LIVE"],
"args": [
"-DTESTING",
"-DREAGENTS_TESTING",
"-DTIMER_DEBUG",
"-DREFERENCE_DOING_IT_LIVE"
],
"windows": {
"command": ".\\tools\\build\\build.bat",
"args": ["-DTESTING","-DREAGENTS_TESTING","-DTIMER_DEBUG","-DREFERENCE_DOING_IT_LIVE"]
"args": [
"-DTESTING",
"-DREAGENTS_TESTING",
"-DTIMER_DEBUG",
"-DREFERENCE_DOING_IT_LIVE"
]
},
"options": {
"env": {
"DM_EXE": "${config:dreammaker.byondPath}"
}
},
"problemMatcher": [
"$dreammaker",
"$tsc",
"$eslint-stylish"
],
"problemMatcher": ["$dreammaker", "$tsc", "$eslint-stylish"],
"group": {
"kind": "build"
},
@@ -75,21 +73,29 @@
{
"type": "process",
"command": "tools/build/build",
"args": ["-DLOWMEMORYMODE","-DTESTING","-DREAGENTS_TESTING","-DTIMER_DEBUG","-DREFERENCE_DOING_IT_LIVE"],
"args": [
"-DLOWMEMORYMODE",
"-DTESTING",
"-DREAGENTS_TESTING",
"-DTIMER_DEBUG",
"-DREFERENCE_DOING_IT_LIVE"
],
"windows": {
"command": ".\\tools\\build\\build.bat",
"args": ["-DLOWMEMORYMODE","-DTESTING","-DREAGENTS_TESTING","-DTIMER_DEBUG","-DREFERENCE_DOING_IT_LIVE"]
"args": [
"-DLOWMEMORYMODE",
"-DTESTING",
"-DREAGENTS_TESTING",
"-DTIMER_DEBUG",
"-DREFERENCE_DOING_IT_LIVE"
]
},
"options": {
"env": {
"DM_EXE": "${config:dreammaker.byondPath}"
}
},
"problemMatcher": [
"$dreammaker",
"$tsc",
"$eslint-stylish"
],
"problemMatcher": ["$dreammaker", "$tsc", "$eslint-stylish"],
"group": {
"kind": "build"
},
@@ -99,21 +105,17 @@
{
"type": "process",
"command": "tools/build/build",
"args": ["-DTESTING","-DMAP_TEST"],
"args": ["-DTESTING", "-DMAP_TEST"],
"windows": {
"command": ".\\tools\\build\\build.bat",
"args": ["-DTESTING","-DMAP_TEST"]
"args": ["-DTESTING", "-DMAP_TEST"]
},
"options": {
"env": {
"DM_EXE": "${config:dreammaker.byondPath}"
}
},
"problemMatcher": [
"$dreammaker",
"$tsc",
"$eslint-stylish"
],
"problemMatcher": ["$dreammaker", "$tsc", "$eslint-stylish"],
"group": {
"kind": "build"
},
@@ -123,9 +125,7 @@
{
"type": "dreammaker",
"dme": "tgstation.dme",
"problemMatcher": [
"$dreammaker"
],
"problemMatcher": ["$dreammaker"],
"group": "build",
"label": "dm: build - tgstation.dme"
},
@@ -140,10 +140,7 @@
"windows": {
"command": ".\\bin\\tgui-build.cmd"
},
"problemMatcher": [
"$tsc",
"$eslint-stylish"
],
"problemMatcher": ["$tsc", "$eslint-stylish"],
"group": "build",
"label": "tgui: build"
},
@@ -153,10 +150,7 @@
"windows": {
"command": ".\\bin\\tgui-dev.cmd"
},
"problemMatcher": [
"$tsc",
"$eslint-stylish"
],
"problemMatcher": ["$tsc", "$eslint-stylish"],
"group": "build",
"label": "tgui: dev server"
},
@@ -166,10 +160,7 @@
"windows": {
"command": ".\\bin\\tgui-bench.cmd"
},
"problemMatcher": [
"$tsc",
"$eslint-stylish"
],
"problemMatcher": ["$tsc", "$eslint-stylish"],
"group": "build",
"label": "tgui: bench"
},
@@ -179,10 +170,7 @@
"windows": {
"command": ".\\bin\\tgui-sonar.cmd"
},
"problemMatcher": [
"$tsc",
"$eslint-stylish"
],
"problemMatcher": ["$tsc", "$eslint-stylish"],
"group": "build",
"label": "tgui: sonar"
},
@@ -192,10 +180,7 @@
"windows": {
"command": ".\\bin\\tgfont.cmd"
},
"problemMatcher": [
"$tsc",
"$eslint-stylish"
],
"problemMatcher": ["$tsc", "$eslint-stylish"],
"group": "build",
"label": "tgui: rebuild tgfont"
}