Skip to content

Conversation

@lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Nov 19, 2025

this PR adopts the new flat file config for eslint and uses the airbnb-typescript-extended plugin (as the old airbnb typescript one doesn't get updates anymore).

With this change we now also get linting with type information.
The only downside is that the linting job takes a bit longer (because TS is additionally running).

I added a minimal set of ignored rules for now so that the lint job still passes with the current code base. We can then do smaller PRs to address individual rules.

@lukasIO lukasIO requested a review from 1egoman November 19, 2025 16:08
@changeset-bot
Copy link

changeset-bot bot commented Nov 19, 2025

⚠️ No Changeset found

Latest commit: f91c97e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Nov 19, 2025

size-limit report 📦

Path Size
dist/livekit-client.esm.mjs 85.06 KB (0%)
dist/livekit-client.umd.js 93.67 KB (0%)

Copy link
Contributor

@1egoman 1egoman left a comment

Choose a reason for hiding this comment

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

This generally makes sense to me!

Note that the tests aren't passing, at least in the most recent CI run as of this review it is because of the below (and it looks related to this change). Once the below is fixed I'll approve this!

> [email protected] compat /home/runner/work/client-sdk-js/client-sdk-js
> eslint --no-eslintrc --config ./.eslintrc.dist.cjs ./dist/livekit-client.umd.js

Invalid option '--eslintrc' - perhaps you meant '--ext'?
You're using eslint.config.js, some command line flags are no longer available. Please see https://eslint.org/docs/latest/use/command-line-interface for details.
 ELIFECYCLE  Command failed with exit code 2.

@lukasIO
Copy link
Contributor Author

lukasIO commented Nov 20, 2025

the failing test was the one that runs on the "compiled" output dist.

The plugin was no longer maintained so I now switched us to a different one that seems to have better feature detection as well!

Should be good to go now

@lukasIO lukasIO merged commit de8e54a into main Nov 20, 2025
6 checks passed
@lukasIO lukasIO deleted the lukas/eslint-new branch November 20, 2025 14:56
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