feat(roblox): support React Luau projects with roblox-ts rules#23
Open
howmanysmall wants to merge 5 commits intomillionco:mainfrom
Open
feat(roblox): support React Luau projects with roblox-ts rules#23howmanysmall wants to merge 5 commits intomillionco:mainfrom
howmanysmall wants to merge 5 commits intomillionco:mainfrom
Conversation
Implement auto-detection for Roblox environments built with roblox-ts. This includes specialized linting configurations that suppress web-specific rules (like DOM/CSS animations and JSX accessibility) while maintaining core React correctness checks. Also adds a `--framework` CLI flag to override automatic detection and improves source file counting for projects not using Git.
… feat/support-react-luau
Introduces four new rules specifically for Roblox development with React: - `rbx-no-uncleaned-connection`: ensures .Connect() in useEffect has cleanup - `rbx-no-print`: warns against print() and warn() in production code - `rbx-no-direct-instance-mutation`: prevents direct assignment to ref.current properties - `rbx-no-unstored-connection`: ensures connections outside of effects are stored These rules are only enabled when the framework is detected as `roblox-ts`. Additionally, `prefer-dynamic-import` is now disabled for Roblox projects as it is not supported by the environment.
|
@howmanysmall is attempting to deploy a commit to the Million Team on Vercel. A member of the Team first needs to authorize it. |
Author
|
Should probably mention that |
Prune the Bun lockfile by removing workspace package definitions and their associated dependency trees. This significantly reduces the size of the lockfile and removes unused dependencies.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
References
Summary
Adds Roblox/React Luau support with framework detection and a
--frameworkoverride, plus roblox-ts specific lint rules. Updates docs, oxlint config, and test fixtures to validate Roblox-specific behavior.Test Plan