Disallow optional chaining operator

This commit is contained in:
Brahim Hadriche committed 2024-03-08 12:06:41 -05:00
1 parent 9315fa6cf7
commit 8a63bc848d
1 file changed
+6
+6
View File
@@ -40,6 +40,12 @@
"regex": "\\b(?!_unused)unused\\b",
"regexFlags": "ig",
"message": "unused args should start with _ (e.g. _unused)"
},
{
"code": "NO_OPTIONAL_CHAINING",
"regex": "\\?\\.",
"regexFlags": "ig",
"message": "No optional chaning (var1?.property). Do a type check instead."
}
],
"files": [