Disallow optional chaining operator
This commit is contained in:
1 parent
9315fa6cf7
commit
8a63bc848d
1 file changed
+6
@@ -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": [
|
||||
|
||||
Reference in new issue
Block a user