Skip to content

Feature Request: Separate spacing rules for arrays and tables #187

Open
@4lph4-Ph4un

Description

@4lph4-Ph4un

I would like to be able to write tables in this manner and it to give me feedback. I personally use space between curlies in map-type of tables, and no space in arrays. I think it would also be nice if an user would define the rule other way around if they want that, since this is just a personal preference:

-- The correct way for me:
local map = { foo = 1 }
local arr = {1, 2, 3, 4}

-- I would like this to give me style-check error:
local map = {foo = 1}
local arr = { 1, 2, 3, 4 }

Mentioned this earlier and reported here as requested:
LuaLS/lua-language-server#2876

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions