v0.17.0 #660
JohnnyMorganz
started this conversation in
General
v0.17.0
#660
Replies: 1 comment 1 reply
-
Can we have |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
[0.17.0] - 2023-03-11
Added
local NAME = require(EXPR)
lexicographically onNAME
.We do this by treating a group of consecutive requires as a "block", and then sorting only within the block. Any other statement, or an empty line, between require statements will split the group into two separate blocks (and can be used to separate the sorting). A block of requires will not move around the file.
Roblox Luau statements of the form
local NAME = game:GetService(EXPR)
will also be sorted separately.This feature is disabled by default. To enable it, add the following to your
stylua.toml
:Note: we assume that all requires are pure with no side effects. It is not recommended to use this feature if the ordering of your requires matter.
stylua.toml
was found.This feature is enabled by default, it can be disabled using
--no-editorconfig
.What's Changed
editorconfig
feature by @LEI in Add defaulteditorconfig
feature #645New Contributors
editorconfig
feature #645Full Changelog: v0.16.1...v0.17.0
This discussion was created from the release v0.17.0.
Beta Was this translation helpful? Give feedback.
All reactions