Open elsassph opened 3 years ago
I think the options you have for trailing comas is good. Keep in mind this can also apply for arrays so a more general rule for trailing comas might be good.
Comas are required for single line or same line values. Again this also applies to arrays.
For quotes I can still see value in a rule for it. I would think by default the rule would be no enforcement. And if you want a never
rule then case can be enforced in code with something like:
myAa = {}
myAa["A"] = 1
I have had this as a rule for many projects.
this seems right to me.
@chrisdp ok so AA keys options to optionally enforce quote / no-quote (and obviously off
)?
@elsassph Yes that sounds right.
Reopning because we still want AA key quotes rules.
What options do we want for AA literals?
What about commas? Commas are optional - I'm thinking options could be:
Does that work both for multi-line/one-line literals?
Other things related to linting? I don't think using quotes should be enforced as it changes the semantics of the AA.