Skip to content

chore(javascript): use oxlint #3895

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

Merged
merged 18 commits into from
Oct 8, 2024
Merged

chore(javascript): use oxlint #3895

merged 18 commits into from
Oct 8, 2024

Conversation

shortcuts
Copy link
Member

@shortcuts shortcuts commented Oct 6, 2024

🧭 What and Why

🎟 JIRA Ticket: https://algolia.atlassian.net/browse/DI-3035

Changes included:

trying out oxlint instead of oslint, performance improvements on the ci are considerable, the output changes but nothing crazy, mostly syntactic sugar

let's discuss it

step eslint oxlint
gen 2m50 50s
cts 1m50 41s
snippets 50s 37s
guides 21s 10s

@algolia-bot
Copy link
Collaborator

algolia-bot commented Oct 6, 2024

✔️ Code generated!

Name Link
🪓 Triggered by ca1d44843cd30c2addd508c56fe526cc6fc57722
🍃 Generated commit 096b0d646e4b59cf258438c5ab79ef90539f24e9
🌲 Generated branch generated/chore/javascript-oxlint
📊 Benchmark results

Benchmarks performed on the method using a mock server, the results might not reflect the real-world performance.

Language Req/s
javascript 1615
go 1547
php 1495
csharp 1339
java 1139
python 1029
ruby 898
swift 760

@shortcuts shortcuts force-pushed the chore/javascript-oxlint branch 2 times, most recently from c68ea9c to e5d226e Compare October 6, 2024 12:59
@shortcuts shortcuts force-pushed the chore/javascript-oxlint branch from e5d226e to 8444131 Compare October 6, 2024 13:29
@millotp
Copy link
Collaborator

millotp commented Oct 7, 2024

ahah I tried it too last week, turns out its not a formatter and doesn't remove white spaces or any stylistic fixes (https://oxc.rs/docs/guide/usage/linter#language-support), so not ideal for generated code

Copy link

github-actions bot commented Oct 7, 2024

@shortcuts shortcuts marked this pull request as ready for review October 7, 2024 11:39
@shortcuts shortcuts requested a review from a team as a code owner October 7, 2024 11:39
Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

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

can you format the playground too pls ? I think there is a bunch of changes

@shortcuts shortcuts force-pushed the chore/javascript-oxlint branch from 1841197 to 262ad89 Compare October 7, 2024 14:41
Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

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

lezzzgo, bye bye eslint u 2 slow

@shortcuts shortcuts enabled auto-merge (squash) October 8, 2024 08:52
@shortcuts shortcuts merged commit ed6f4ba into main Oct 8, 2024
28 checks passed
@shortcuts shortcuts deleted the chore/javascript-oxlint branch October 8, 2024 09:06
algolia-bot added a commit that referenced this pull request Oct 8, 2024
algolia-bot added a commit to algolia/algoliasearch-client-javascript that referenced this pull request Oct 8, 2024
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