What problem does it solve?
This Skill streamlines the process of creating, implementing, and testing new lint rules within the Biome codebase, significantly reducing the boilerplate and complexity involved in contributing to the project.
Core Features & Use Cases
- Scaffolding: Quickly generate the necessary file structure and boilerplate code for new lint rules across different languages.
- Implementation Guidance: Provides code examples and patterns for writing rule logic, including handling AST nodes and semantic analysis.
- Testing Workflows: Details methods for both quick, iterative testing and comprehensive snapshot testing.
- Configuration: Guides on adding configurable options to rules for greater flexibility.
- Use Case: A developer wants to add a new lint rule to Biome that flags the use of a deprecated JavaScript API. They can use this Skill to generate the rule's files, implement the detection logic, write tests, and ensure it's configurable.
Quick Start
Generate a new JavaScript lint rule named 'noDeprecatedApi' using the provided scaffolding commands.