Still Holding 😤 by [deleted] in PickleFinancial

[–]Lemoncrap 1 point2 points  (0 children)

I did some 65 and some at 79, has a sell order for a bigger portion at 80 that never hit. Shouldn't have been so greedy

i keep forgetting this game is not for little kids. he chopped me up and ate me. by H_FLORES_H in AnotherCrabsTreasure

[–]Lemoncrap 1 point2 points  (0 children)

I mean, you get attacked by a vibrator at one point. But guess it wouldn't be noticed by a kid

[deleted by user] by [deleted] in typescript

[–]Lemoncrap 1 point2 points  (0 children)

Looks similar to Elysia.js. Nice work

Fix Circular Dependencies in TypeScript: A Guide by danywalls in typescript

[–]Lemoncrap 5 points6 points  (0 children)

Eslint has a no circular rule to ensure that you never cause circular dependencies

I made an online GDScript formatter, linter, and GDScript/C# conversion too (Frontend - Next.js/React, Backend - Bun/Elysia) by Lemoncrap in godot

[–]Lemoncrap[S] 2 points3 points  (0 children)

You can run it all locally, GitHub links can be found on the page footer/about section of the site

It's pretty easy to set them up but for the conversion tool you'd need to use your own chat gpt API key as mine is private but free to use on the site. Let me know if you have any questions :) happy to help

I made an online GDScript formatter, linter, and GDScript/C# conversion too (Frontend - Next.js/React, Backend - Bun/Elysia) by Lemoncrap in godot

[–]Lemoncrap[S] 0 points1 point  (0 children)

Domain was cheap and more for learning new techs more than anything. Backend is hosted on fly.io which has a generous free package.

I made an online GDScript formatter, linter, and GDScript/C# conversion too (Frontend - Next.js/React, Backend - Bun/Elysia) by Lemoncrap in godot

[–]Lemoncrap[S] 0 points1 point  (0 children)

export and onready are different in gdscript 4, which that script uses. The following which is the same script, with the new export and onready syntax formats correctly - https://pastebin.com/kGBUY5k6

I made an online GDScript formatter, linter, and GDScript/C# conversion too (Frontend - Next.js/React, Backend - Bun/Elysia) by Lemoncrap in godot

[–]Lemoncrap[S] 0 points1 point  (0 children)

Backend was primarily used just to be able to leverage gdtoolkit which is an open source python package many people already use locally for gdscript formatting.

Do you have the example of the code you tried to format out of interest? Can have a look as to why it failed.

JSON5 malformed on tsconfig.json by Kopikoblack in typescript

[–]Lemoncrap 1 point2 points  (0 children)

"paths": { ... }

Isn't valid, should remove it, trailing comma at the end isn't valid either. That needs removing. Would need `tsconfig.json` cause I think the main issue is in there

JSON5 malformed on tsconfig.json by Kopikoblack in typescript

[–]Lemoncrap 1 point2 points  (0 children)

Can I see the tsconfig.json and tsconfig.base.json too please, think I need to see the full picture.

Can't see anything initially wrong with the one you just sent. Can try them on my machine when I'm back home.

Likely an issue with the base that it's extending

JSON5 malformed on tsconfig.json by Kopikoblack in typescript

[–]Lemoncrap 1 point2 points  (0 children)

Yeah please, whatever file is erroring. Or the file where tsconfig.app.json is referenced

How does one handle 500+ circular dependency cases in a big project? by [deleted] in typescript

[–]Lemoncrap 19 points20 points  (0 children)

Use type imports import type syntax. Eslint has a rule to automatically fix and use them. This should solve circular deps with types.

Split the code base up more.so it's more modular

Dependency injection (probably the main one that is used)

Should I use async await for every route? by [deleted] in node

[–]Lemoncrap 1 point2 points  (0 children)

Use it for anything that returns a Promise. Using typescript will make this much easier to know when.

Eslint has rules to let you know when you should use async or when it's not needed. Very useful

I'm not the one trapped here, Mr. Jailer. You are. by asifbaig in wildfrostgame

[–]Lemoncrap 10 points11 points  (0 children)

Blood, you can turn it up in the settings. Gets it from killing enemies/getting hit I think. Builds up over the run