Quick Start
Getting started
Quick start
Install the plugin, add a few rules to .oxlintrc.json, and run your first lint.
Install
Section titled “Install”Add small-rules and oxlint to your roblox-ts project as dev dependencies:
aube add -D @pobammer-ts/small-rules oxlintnpm install -D @pobammer-ts/small-rules oxlintpnpm add -D @pobammer-ts/small-rules oxlintyarn add -D @pobammer-ts/small-rules oxlintbun add -d @pobammer-ts/small-rules oxlintdeno add -D npm:@pobammer-ts/small-rules npm:oxlintvlt install -D @pobammer-ts/small-rules oxlintvp add -D @pobammer-ts/small-rules oxlintni -D @pobammer-ts/small-rules oxlintConfigure
Section titled “Configure”Register the plugin in .oxlintrc.json, then enable the rules you want to try:
{ "jsPlugins": ["@pobammer-ts/small-rules"], "rules": { "small-rules/no-print": "error", "small-rules/no-warn": "error", "small-rules/ban-react-fc": "error", "small-rules/no-task-wait": "error", "small-rules/prefer-early-return": "warn" }}Run the linter:
oxlint .If you want a package script, add one to package.json:
{ "scripts": { "lint": "oxlint" }}Then run:
aube run lintnpm run lintpnpm run lintyarn run lintbun run lintdeno task lintvlt run lintvp run lintnr lintAuto-fix
Section titled “Auto-fix”Some rules provide automatic fixes. Apply them with:
oxlint --fixWhere to go next
Section titled “Where to go next”ConfigurationLearn about all configuration options and rule severities.
React RulesExplore the React rule category.
Roblox RulesExplore the Roblox rule category.
ChangelogSee what changed in recent releases.