Загрузка...

Open Source Contribution: Implementing a New Rule in BiomeJs | Rust Programming

Hello and welcome back! In this video, I take you through my latest open-source contribution to BiomeJs (a fast formatter and linter written in Rust).

I detail the process of porting the **preserve-uncaught-error** rule from ESLint, a task that took a couple of weeks and provided a great opportunity to continue learning Rust.

What's Covered:
Rule Implementation: I explain the core logic, which involves a multi-step tree traversal to identify throw statements within a catch block while ignoring those inside functions, methods, or classes (mirroring the ESLint behavior).

Technical Decisions: A look at how I check for the error binding match and the decision to temporarily delay the implementation of the action fix (auto-correction) due to complexities, like destructuring and the compatibility of the cause property across different JavaScript/TypeScript versions.

Improved Documentation: I discuss the importance of writing clear, explicit documentation (including Rust documentation and changelog entries), a skill I've been actively working on based on feedback from previous pull requests.

Join me as I share the challenges and considerations of contributing to a large-scale open-source project!

Видео Open Source Contribution: Implementing a New Rule in BiomeJs | Rust Programming канала kedevked
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять