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 🙏

© 2025 – Pkg Stats / Ryan Hefner

eslint-plugin-roblox-ts-x

v2.1.0

Published

A collection of ESLint rules specifically targeted for roblox-ts.

Readme

eslint-plugin-roblox-ts-x

npm version npm downloads bundle JSDocs License

A collection of ESLint rules specifically targeted to flag common issues when using roblox-ts. These rules are nearly all designed to help avoid compiler errors for features that are not supported by the roblox-ts compiler, despite being valid TypeScript.

These rules should help users learn roblox-ts when coming from Lua, as well as guiding users who already know TypeScript to avoid unsupported features.

Rules

🔧 Automatically fixable by the --fix CLI option.
💡 Manually fixable by editor suggestions.
💭 Requires type information.

| Name                        | Description | 🔧 | 💡 | 💭 | | :------------------------------------------------------------------------------------ | :------------------------------------------------------------------------ | :- | :- | :- | | lua-truthiness | Enforces the use of lua truthiness | | | 💭 | | misleading-lua-tuple-checks | Disallow the use of LuaTuple in conditional expressions | 🔧 | | 💭 | | no-any | Disallow values of type any. Use unknown instead | 🔧 | 💡 | | | no-array-pairs | Disallow usage of pairs() and ipairs() with Array | | | 💭 | | no-enum-merging | Disallow merging enum declarations | | | | | no-export-assignment-let | Disallow using export = on a let variable | | | | | no-for-in | Disallow iterating with a for-in loop | 🔧 | | | | no-function-expression-name | Disallow the use of function expression names | 🔧 | | | | no-get-set | Disallow getters and setters | 🔧 | | | | no-implicit-self | Enforce the use of . instead of : for method calls | 🔧 | | | | no-invalid-identifier | Disallow the use of Luau reserved keywords as identifiers | | | | | no-namespace-merging | Disallow merging namespace declarations | | | | | no-null | Disallow usage of the null keyword | 🔧 | | | | no-object-math | Enforce DataType math methods over operators | 🔧 | | 💭 | | no-post-fix-new | Disallow .new() on objects without a .new() method | 🔧 | | 💭 | | no-preceding-spread-element | Disallow spread elements not last in a list of arguments | | | 💭 | | no-private-identifier | Disallow the use of private identifiers (#) | 🔧 | | | | no-unsupported-syntax | Disallow unsupported syntax in roblox-ts | | | | | no-user-defined-lua-tuple | Disallow usage of LuaTuple type keyword and $tuple() calls | 🔧 | | | | no-value-typeof | Disallow using typeof to check for value types | | | | | prefer-get-players | Enforces the use of Players.GetPlayers() instead of Players.GetChildren() | 🔧 | | | | prefer-task-library | Enforce use of task library alternatives | 🔧 | | | | size-method | Enforce use of .size() instead of .length or .size property | 🔧 | | 💭 |

Installation

You'll first need to install ESLint v8.0.0 or greater:

npm install eslint --save-dev

ESLint Version Support:

  • ESLint v8.x: ✅ Fully supported
  • ESLint v9.x: ✅ Fully supported

Next, install eslint-plugin-roblox-ts-x:

npm install eslint-plugin-roblox-ts-x --save-dev

Usage

The easiest way to use eslint-plugin-roblox-ts-x is to use the ready-made config. Config files use all the rules of the current plugin, but you can override them.

Flat Config (eslint.config.ts)

import roblox from 'eslint-plugin-roblox-ts-x'

export default [
	roblox.configs.recommended,
]

Legacy Config (.eslintrc)

{
	"extends": ["plugin:roblox-ts-x/recommended-legacy"]
}

Manual Configuration

Altertatively, add eslint-plugin-roblox-ts-x to the plugins section of the ESLint configuration file and define the list of rules you will use.

import roblox from 'eslint-plugin-roblox-ts-x'

export default [
	{
		plugins: {
			"roblox-ts-x": roblox,
		},
		rules: {
			"roblox-ts-x/no-any": ["error", { fixToUnknown: true }],
		},
	},
];

Legacy Config (.eslintrc)

{
	"extends": ["plugin:roblox-ts-x/recommended-legacy"]
}

Alternatively, add eslint-plugin-roblox-ts-x to the plugins section of your .eslintrc configuration file and configure the rules you want to use.

{
	"plugins": [
		"roblox-ts-x"
	],
	"rules": {
		"roblox-ts-x/no-any": ["error", { "fixToUnknown": true }],
		"roblox-ts-x/no-null": "error",
		"roblox-ts-x/no-object-math": "error"
	}
}

Versioning Policy

This plugin is following Semantic Versioning and ESLint's Semantic Versioning Policy.

Contributing

See Contributing Guide.

License

MIT License © Christopher Buss