Internal - CLI improvements

Luke Bowerman · Friday Demos · January 2, 2026 · 4:04

A discussion of some new internal improvements to CLI

Try it yourselfThe full week on docsengineeringinternal

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. the break. Uh Trey was kind enough to do some kind of ugly reviews to get um our version of ESLint upgraded. Um so super boring, but basically when you run ESLint, you're running ESLint 9 now instead of eight, which nine's been out for several years. Um what this means is that there is a single ESLint. Uh oh, am I lying?

  2. Please don't be lying. Hey, these are gone. Hey. Oh. Um, I might be on the wrong branch or they came back. Oh, yeah. I'm on the wrong branch. Good job, Luke. Uh, there is a single ESLint configuration file now um at the very root of the of the repo. Um, and it's kind of enormous, but basically ESLint switched to like this what they call flat config, which is uh supposed to help performance quite a bit um either pre and post caching with ESLint.

  3. Um, so that is now in place. Um, it's a bit of a long read, but it does consolidate all to one place and gives us nicer tooling. Um, the bigger one on top of this is that we can then go experiment with some alternative tooling. Um, one that we've actually been using on the website for a long time is called Oxent.

  4. Um, so I don't want to rerun my baseline here, but right now ESLint with fully cached takes about 3 to 5 seconds. That is fully cached. So in CI it takes more like five times that like 30 seconds to fully run just builds a big cache. Um Oxent is this alternative tooling from the same folks folks who build Vit.

  5. Um it's rust based because everything cool is Rust based apparently. Um and instead of instead of using a cache, it just is uh supremely fast is their goal. So this is fully uncashed because they don't have one. It takes about 1.2 seconds. Um it does do some like in-memory caching. So running it again half the time like 700 milliseconds.

  6. Um that's not the entire lint suite. It's like 90% coverage of our current lint suite. Um it's got a few gaps. Um they generally right now are saying like oh do a two-stage lint. Um so we could experiment with that but kind of a cool example of their tooling. Um they also have a formatter that is um about 100 times faster.

  7. So you hit enter and it's done in our repo when you do it. Um, it has a couple of gotchas where I don't really want to ship it. They're like, "Please don't use this quite yet." Um, it's alpha, but I think we'll be able to follow with that, too. So, kind of nice tooling. Um, this is in a branch.

  8. I don't know if we'll go with it or not quite yet, but um, how does the how do the ergonomics feel inside like VS Code or Cursor or anything? Uh, there's a plugin that's identical to the ESLint plugin basically. So, it looks the uh I don't have a breakage. the the actually the formatting for its breakage is really pretty.

  9. Like it actually does a really nice uh like it points you right at the spot and underlines it and it's super nice formatting for like when you actually break something. So um I would say it's significantly better than ESLint that way. Um the cool thing too is these guys have been coordinating a lot with ESLint teams and the prettier team.

  10. So they've been finding bugs in ESLint and prettier and pushing them back so they keep parody. Um so kind of a cool approach. Yeah, but in general we're on ESL 9 which is quite a bit faster and hopefully we can move to some of the more contemporary tooling that is even faster with the hope being that um these tools also seem to run a lot better in the like headless claw AI environments because they're almost zero dependency because they're basically just Rust.

  11. Um so they run a lot they run really nicely there. I've seen claw mess up not mess up like remembering to actually like format stuff um a lot more often with this stuff. So, um, that's kind of my part of the reason I chased it was maybe we can get let rid of a few of the dumb claw forgot to lint something before it opened to PR.

  12. So, yeah, that's me. All right.