Skip to content

Conversation

@jobelenus
Copy link
Contributor

@jobelenus jobelenus commented Jan 16, 2026

Proposal for some linting rule fixes—DISCUSS.

This basically leave one rule in warning state that is giving useful feedback to us while making decisions @typescript-eslint/restrict-template-expressions

@github-actions
Copy link

github-actions bot commented Jan 16, 2026

Dependency Review

✅ No vulnerabilities or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions github-actions bot added the A-web label Jan 16, 2026
if (connected) wsConnections.value[workspaceId] = connected;

await db.setConnections({ ..._wsConnections.value });
db.setConnections({ ..._wsConnections.value });
Copy link
Contributor

Choose a reason for hiding this comment

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

I like that we don't await non-async things! Is this enforced by require-await? Seems like a hidden feature of that rule.


// warning on this because we have some shenanigans where it is a promise but a literal `await` is not present
"@typescript-eslint/require-await": "warn",
"@typescript-eslint/require-await": 0,
Copy link
Contributor

Choose a reason for hiding this comment

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

This change is the only one I'm curious about. We don't want this to be "error" (2)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Both in the pinia stores, and in the web worker ... basically, we know that with Comlink, things return a promise, so its an async function, even if there isn't an await inside of it... and the same goes to the pinia store... there isn't an await, but the funcs have to be async for the plugin that we wrote to work

@jobelenus jobelenus force-pushed the jobelenus/linting-rules branch from 93f7648 to e564b24 Compare January 16, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants