Disable the use of nested ternary operators.
This commit is contained in:
@@ -50,6 +50,14 @@
|
||||
"props": { "severity": "INFO" },
|
||||
"type": "AvoidStarImport"
|
||||
},
|
||||
{
|
||||
"comment": "If enabled, prevents ternary operators from being nested.",
|
||||
"props": {
|
||||
"severity": "INFO",
|
||||
"maxDepth": 1
|
||||
},
|
||||
"type": "AvoidTernaryOperator"
|
||||
},
|
||||
{
|
||||
"comment": "If enabled, prevents conditional compilation from crossing blocks. This prevents the case where conditional compilation could potentially create invalid syntax.",
|
||||
"props": { "severity": "INFO" },
|
||||
|
||||
Reference in New Issue
Block a user