Skip to content

Conversation

@corrideat
Copy link
Member

No description provided.

Comment on lines +75 to +79
} as ChelContractState,
serializedEncryptedData,
0,
{ [id]: key }
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I suppose these types of changes aren't really needed either.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't seem to find another way of doing this that isn't awkward (apparently, lines 76-78 could be collapsed into one, but that seems inconsistent and harder to read) and doesn't exceed the line length.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No big deal either way I suppose. But note that prettier doesn't need to be run again.. And really we don't need to add it as a project dependency

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And really we don't need to add it as a project dependency

But it's not being added as a project dependency, is it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed you're right 👍

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Arguably there's a good reason to add it as a dependency, which should be a separate issue: apparently eslint is somewhat (*) able to enforce max line length rules, but it's not able to 'fix' them, so for DX it's slightly better to run eslint with prettier)

(*) Some things seem to escape it, see the chelonia.ts example below

@corrideat corrideat marked this pull request as ready for review October 19, 2025 17:12
Comment on lines +232 to +234
"test": "node --import 'data:text/javascript,import { register } from \"node:module\"; import { pathToFileURL } from \"node:url\"; register(\"ts-node/esm\", pathToFileURL(\"./\")); process.on(\"uncaughtException\", (e) => { console.error(\"ERROR\", e); throw e });' src/index.test.ts",
"build:esm": "node --import 'data:text/javascript,import { register } from \"node:module\"; import { pathToFileURL } from \"node:url\"; register(\"ts-node/esm\", pathToFileURL(\"./\")); process.on(\"uncaughtException\", (e) => { console.error(\"ERROR\", e); throw e });' buildHelper.ts esm",
"build:cjs": "node --import 'data:text/javascript,import { register } from \"node:module\"; import { pathToFileURL } from \"node:url\"; register(\"ts-node/esm\", pathToFileURL(\"./\")); process.on(\"uncaughtException\", (e) => { console.error(\"ERROR\", e); throw e });' buildHelper.ts cjs",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These aren't strictly speaking relevant to whitespace, but throwing is necessary in this case to propagate errors if they should occur.

Copy link
Member Author

@corrideat corrideat Oct 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also: Node 24 (well, since 22 apparently) natively supports TypeScript, so once we upgrade we can remove the dependency on ts-node.

See https://nodejs.org/en/learn/typescript/run-natively

@corrideat corrideat requested a review from taoeffect October 19, 2025 17:23
Copy link
Member

@taoeffect taoeffect left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@taoeffect taoeffect merged commit 988a6f0 into main Oct 19, 2025
4 checks passed
@corrideat corrideat deleted the whitespace branch October 19, 2025 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants