Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix linting #1246

Merged
merged 2 commits into from
Jan 29, 2025
Merged

chore: fix linting #1246

merged 2 commits into from
Jan 29, 2025

Conversation

deboer-tim
Copy link
Contributor

What does this PR do?

Tried making a few intentional mistakes, and yes, linting was very broken in .ts and .svelte.

For consistency and picking a good baseline, I started by pulling the package.json and eslint differences from the AI Lab extension, which included switching to the newer eslint.config.mjs config instead of .eslint files. Eslint is updated, and several plugins were added.

Since the rules in ai-lab are stricter than when eslint stopped working here, this flagged ~160 'new' issues. This would be too much change for a single PR, so I fixed all the minor/one-off issues here, disabled rules for the top 4, and opened #1245 to enable them later.

Screenshot / video of UI

N/A

What issues does this PR fix or reference?

Fixes #1239.

How to test this PR?

Verify changes, build/PR checks pass.

@deboer-tim deboer-tim requested a review from a team as a code owner January 29, 2025 18:31
@deboer-tim deboer-tim requested review from benoitf, dgolovin and axel7083 and removed request for a team January 29, 2025 18:32
Copy link
Contributor

@benoitf benoitf left a comment

Choose a reason for hiding this comment

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

thx

Tried making a few intentional mistakes, and yes, linting was very broken in
.ts and .svelte.

For consistency and picking a good baseline, I started by pulling the package.json
and eslint differences from the AI Lab extension, which included switching to the
newer eslint.config.mjs config instead of .eslint files. Eslint is updated, and
several plugins were added.

Since the rules in ai-lab are stricter than when eslint stopped working here,
this flagged ~160 'new' issues. This would be too much change for a single PR, so I
fixed all the minor/one-off issues here, disabled rules for the top 4, and opened
#1245 to enable them later.

Fixes #1239.

Signed-off-by: Tim deBoer <[email protected]>
@deboer-tim
Copy link
Contributor Author

Rebased to fix pnpm-lock.yaml conflict, no other change.

@benoitf
Copy link
Contributor

benoitf commented Jan 29, 2025

looks like there are some regressions after the rebase

Fixes two issues found after rebasing on main and in PR check.

Signed-off-by: Tim deBoer <[email protected]>
@deboer-tim deboer-tim merged commit f3e5e8f into main Jan 29, 2025
6 checks passed
@deboer-tim deboer-tim deleted the linting branch January 29, 2025 20:47
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.

linter is not working properly in this repository
2 participants