mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-13 11:12:14 +00:00
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
22 lines
425 B
JavaScript
22 lines
425 B
JavaScript
import assert from "node:assert/strict";
|
|
import { changelogToYml } from "./autoChangelog.js";
|
|
import { parseChangelog } from "./changelogParser.js";
|
|
|
|
assert.equal(
|
|
changelogToYml(
|
|
parseChangelog(`
|
|
My cool PR!
|
|
:cl: DenverCoder9
|
|
add: Adds new stuff
|
|
add: Adds more stuff
|
|
/:cl:
|
|
`),
|
|
),
|
|
|
|
`author: "DenverCoder9"
|
|
delete-after: True
|
|
changes:
|
|
- rscadd: "Adds new stuff"
|
|
- rscadd: "Adds more stuff"`,
|
|
);
|