npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

biome-plugin-roblox-ts

v0.1.12

Published

Biome GritQL rules for roblox-ts projects

Readme

cover

biome-plugin-roblox-ts

A port of the eslint-plugin-roblox-ts ruleset to Biome. Designed for roblox-ts development.

This plugin enforces TypeScript restrictions, Lua compatibility patterns, and Roblox-specific best practices to help you write better roblox-ts code.

✨ Features

  • Automatic Setup - Postinstall script automatically configures your biome.json
  • 🎯 TypeScript Focused - Enforces roblox-ts TypeScript restrictions
  • 🌙 Lua Compatible - Prevents patterns that don't translate well to Lua
  • 🎮 Roblox Specific - Rules tailored for the Roblox platform

📦 Installation

1. Install Biome and the Plugin

# npm
npm install --save-dev @biomejs/biome biome-plugin-roblox-ts

# bun
bun add -D @biomejs/biome biome-plugin-roblox-ts

# yarn
yarn add -D @biomejs/biome biome-plugin-roblox-ts

2. Initialize Biome (if not already done)

npx @biomejs/biome init

3. Install Biome VS Code Extension

Install the Biome VS Code extension for IDE integration:

  • Open VS Code
  • Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
  • Search for "Biome"
  • Install the official Biome extension by the Biome team

🎛️ Configuration

After installation, add the plugin to your biome.json configuration:

{
  "extends": ["biome-plugin-roblox-ts/biome"],
}

Customizing Rules

You can disable specific rules or change their severity by overriding them in your biome.json:

{
  "linter": {
    "rules": {
      "nursery": {
        "noNull": "off",
        "noAnyType": "warn"
      }
    }
  }
}

📋 Rules Overview

Built-in Biome Rules (4 rules)

These rules are provided by Biome itself and are enabled as warnings in the plugin configuration:

  • noDebugger - Bans debugger statements
  • noDelete - Bans delete operator
  • noNonNullAssertion - Bans ! assertion operator
  • noWithStatement - Bans with statements

Core Language Features (7 rules)

  • noGlobalThis - Bans globalThis usage
  • noNull - Bans null usage (use undefined instead)
  • noVoidExpression - Bans void expressions
  • noValueTypeOf - Bans typeof operator
  • noPrototype - Bans .prototype access
  • noLabels - Bans labeled statements
  • noForIn - Bans for-in loops (use for-of instead)
  • noRegex - Bans regex literals

Operators & Expressions (6 rules)

  • noEqualityOperators - Bans == operator (use === instead)
  • noInequalityOperators - Bans != operator (use !== instead)
  • noObjectMath - Bans + operator on Roblox data types
  • noMathSub - Bans - operator (use .sub() method)
  • noMathMul - Bans * operator (use .mul() method)
  • noMathDiv - Bans / operator (use .div() method)

TypeScript Features (6 rules)

  • noAnyType - Bans any type (use unknown instead)
  • noEnumMerging - Bans enum declarations
  • noNamespaceMerging - Bans namespace declarations
  • noPrivateIdentifier - Bans # private fields
  • noGettersOrSetters - Bans getter methods
  • noSetters - Bans setter methods

Roblox-Specific (8 rules)

  • noArrayPairs - Bans pairs() function on arrays
  • noArrayIPairs - Bans ipairs() function on arrays
  • noRbxPostFixNew - Bans .new() method calls (use new X() instead)
  • preferTaskLibrary - Prefers task library over coroutine
  • requireModule - Prefers import statements over require()
  • noReservedLuaKeywords - Bans Lua reserved keywords as identifiers
  • noLuaKeywordEnd - Bans 'end' keyword usage
  • noLuaKeywordLocal - Bans 'local' keyword usage
  • noLuaKeywordNil - Bans 'nil' keyword usage

Control Flow & Patterns (11 rules)

  • luaTruthiness - Warns about falsy values in conditions
  • luaTruthinessZero - Warns about 0 in if statements
  • luaTruthinessNaN - Warns about NaN in if statements
  • noUndefinedReturn - Bans explicit undefined returns
  • noArrayAccess - Bans string literal array access
  • noSpreadDestructuring - Bans spread in destructuring
  • noSpreadingTuples - Bans spreading tuples
  • noFunctionExpressionName - Bans named function expressions
  • noExportAssignmentLet - Bans export = syntax
  • noPrecedingSpreadElement - Enforces spread comes last in arguments

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

MIT License - see LICENSE for details.

🔗 Related Projects

  • roblox-ts - TypeScript to Lua compiler for Roblox
  • Biome - Fast formatter and linter for web projects
  • GritQL - Pattern matching language for code

Made with ❤️ for the roblox-ts community