Skip to content

v3.3.0

Choose a tag to compare

@github-actions github-actions released this 07 Oct 18:50
· 242 commits to main since this release
v3.3.0
8082f3f

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 and getUserProfile() passes; configure allowList and denyList to 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 to items in one pass - by @howmanysmall (55850)
  • prefer-single-world-query-in-jecs: Consecutive world.get calls now combine in groups of at most four components, so calls with five or more components do not produce an invalid oversized get call - by @howmanysmall (b8f9b)
  • prevent-abbreviations: Autofixes no longer rename identifiers to arguments, await, or eval; if arguments is the only configured replacement, the fixer uses arguments_ instead - by @howmanysmall (63be6)
  • require-throw-error-capture: Multiple fixes in the same block now use distinct local names, such as error and error2, instead of generating duplicate const error declarations - by @howmanysmall (87209c)

Full Changelog: v3.2.0...v3.3.0