Repository navigation
v3.3.0
v3.3.0: Verb-first naming and safer lint fixes
starts-with-verb adds a recommended naming diagnostic, and fixes to no-async-in-system, no-identity-map, prefer-single-world-query-in-jecs, prevent-abbreviations, and require-throw-error-capture change which code reports or how fixes apply.
🚀 Added
- starts-with-verb: Reports function declarations, function-valued variables, and non-computed method or function-valued property names whose leading lowercase word is not recognized as a verb. For example,
userProfile()reports andgetUserProfile()passes; configureallowListanddenyListto customize prefixes. Constructors, accessors, overrides, computed keys, and externally constrained object properties are left alone - by @howmanysmall in #73
🐞 Fixed
- no-async-in-system: A quoted object key such as
"system"now counts as a system property, so yielding Roblox API calls inside that function are reported - by @howmanysmall (740a2) - no-identity-map: Chained identity calls such as
items.map(x => x).map(y => y)now autofix toitemsin one pass - by @howmanysmall (55850) - prefer-single-world-query-in-jecs: Consecutive
world.getcalls now combine in groups of at most four components, so calls with five or more components do not produce an invalid oversizedgetcall - by @howmanysmall (b8f9b) - prevent-abbreviations: Autofixes no longer rename identifiers to
arguments,await, oreval; ifargumentsis the only configured replacement, the fixer usesarguments_instead - by @howmanysmall (63be6) - require-throw-error-capture: Multiple fixes in the same block now use distinct local names, such as
erroranderror2, instead of generating duplicateconst errordeclarations - by @howmanysmall (87209c)
Full Changelog: v3.2.0...v3.3.0