Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Proposal: Changing some linting rules, making some fixes#8295

Merged
jobelenus merged 1 commit intomainfrom
jobelenus/linting-rules
Jan 21, 2026
Merged

Proposal: Changing some linting rules, making some fixes#8295
jobelenus merged 1 commit intomainfrom
jobelenus/linting-rules

Conversation

@jobelenus
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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.

Comment thread app/web/eslint.config.ts

// 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
Copy Markdown
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
Copy Markdown
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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think 0 is better than warn right now, so I'm going to approve. But for future discussion, what do you think about using explicit ignores where we are forced to do this? (And can you use await anyway, or does that actually change the behavior? Thinking it might remain the same.)

@jobelenus jobelenus force-pushed the jobelenus/linting-rules branch from 93f7648 to e564b24 Compare January 16, 2026 20:48
jkeiser
jkeiser previously approved these changes Jan 20, 2026
wendybujalski
wendybujalski previously approved these changes Jan 21, 2026
@jobelenus jobelenus added this pull request to the merge queue Jan 21, 2026
github-merge-queue Bot pushed a commit that referenced this pull request Jan 21, 2026
Proposal: Changing some linting rules, making some fixes
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jan 21, 2026
@jobelenus jobelenus force-pushed the jobelenus/linting-rules branch from e564b24 to 3ab1291 Compare January 21, 2026 22:01
@jobelenus jobelenus dismissed stale reviews from wendybujalski and jkeiser via 58c6351 January 21, 2026 22:03
@jobelenus jobelenus force-pushed the jobelenus/linting-rules branch from 3ab1291 to 58c6351 Compare January 21, 2026 22:03
wendybujalski
wendybujalski previously approved these changes Jan 21, 2026
@jobelenus jobelenus added this pull request to the merge queue Jan 21, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jan 21, 2026
@jobelenus jobelenus added this pull request to the merge queue Jan 21, 2026
@jobelenus jobelenus removed this pull request from the merge queue due to a manual request Jan 21, 2026
@jobelenus jobelenus force-pushed the jobelenus/linting-rules branch from 58c6351 to 247bcd3 Compare January 21, 2026 23:27
@jobelenus jobelenus added this pull request to the merge queue Jan 21, 2026
Merged via the queue into main with commit 5c86e59 Jan 21, 2026
12 checks passed
@jobelenus jobelenus deleted the jobelenus/linting-rules branch January 21, 2026 23:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants