Next three things are what we are working on right now. A formatter, which is going to be pretty compatible, a transformer or transpiler that is going to be bevel compatible, and lastly the BigBoss modifier. And finally, OXC also supports the rising stars, the Roldown and RSpec bundlers.
It's rather hard to show why OXC is the next big thing, so I will let these people do the talking for me. Ivan Yu was amazed by the speed of OXLint, which is a linter for OXC. He ran it on the Vue repo and took 50 milliseconds. Joe Savanna, who is the lead of the React team at Meta, showed interest in the project and found it pleasing. Eric Simons, CEO of StackBlitz, also recognizes that it may be the next big thing. And Miles, the creator of Moon repo, was amazed by OXLint again.
Lastly, we have Jason Miller, Shopify DX and Creator of Preact, who said the following. OXLint has been a massive win for us at Shopify. Our previous linting setup took 75 minutes to run, so we were finding it out across 50 past workers in CI. By comparison, OXLint takes around 10 seconds to learn the same code base on a single worker and the output is easier to interpret. We even caught a few bugs that were hidden or skipped by our old setup when we migrated. And after a few months later, I talked to Jason again and he said they probably saved millions of dollars on infrastructure after they switched.
Let me quickly show a demonstration of the linter. Here we have OXLint running in the VS Code repo and on my Mac Pro, it completed 4.8k files in 850 milliseconds with the default 90 utilizing all cores. Yes, the linter finished the whole VS Code repository in less than a second. Now let's look at the diagnostics, where for each rule we try to pinpoint the exact same exact issue. Sometimes you don't even need to read the error message to understand what's wrong with the code. The first rule, no const binary expression, is my favorite rule, which has been inside ESLint version 8 for more than a year now. This rule could have cost so many bugs in the past year if it were turned on by default in ESLint when it was first introduced. But unfortunately, it is a breaking trend to turn on new rules, so it has to be introduced in a major version and was only turned on by default in version 9, which was released in April. In my opinion, one of the major tasks of the linter is to view hidden bugs, so such bug-revealing rules should be turned on by default as soon as possible to help people ship better code. Users of OXLint have been enjoying this rule since the beginning. And like for example, for this rule, it's pretty obvious that, but it's not obvious that the knowledge operator has a lower precedent. So to fix the code, you actually need a parenthesis over here. And for these rules, if you just look at the red line, you'll probably understand what's wrong with the code and fix it. What I'm really excited about OXLint today is that we can perform cross-file linting. This means we can implement rules from ESLint plugin import, which are notoriously slow if you enable certain rules, such as the no cycle rule on the left-hand side of the screen.
Comments