Mojang / minecraft-scripting-libraries

Sets of typescript scripting libraries for use with the minecraft scripting modules.
MIT License
17 stars 2 forks source link

Address a few notable gaps in avoid-unnecessary-command eslint rule #21

Closed SBLMikeDemone closed 6 months ago

SBLMikeDemone commented 6 months ago

This changes the avoid-unnecessary-command eslint rule to run on any instance of CallExpressions (i.e. after an await expression or when passed as a parameter to a function or when the resulting promise is assigned to a variable) and also makes it so the rule works on commands with a / before the command.

Merging this will close issue: https://github.com/Mojang/minecraft-scripting-libraries/issues/12