Skip to content

quote_style should include an ignore option #1019

@snowcliffx

Description

@snowcliffx

With the introduction of FFlagDebugLuauStringSingletonBasedOnQuotes in luau 0.688, double-quotes and single-quotes now have different functionalities in type checking:

"...simplifies the singleton inference model a lot. With this flag enabled, the type of a string literal will be string whenever it uses double-quotes or backticks for interpolation, and the corresponding singleton type (e.g. 'foo' for 'foo') when it uses a single-quote."

Ever since I have incorporated this into my newest code base, I have had to deal with the annoying problem of StyLua overriding all of my quotes with a single quote type (which I do not want). I want to be able to switch between double and single quotes based on the type context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestexternalThis issue relies on an external factorluauFormatting related to Luau

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions