tweak optional chaining rule
This commit is contained in:
1 parent
58918f68fb
commit
0f6329997d
2 files changed
+2
-1
No files matched your search
@@ -43,7 +43,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"code": "NO_OPTIONAL_CHAINING",
|
"code": "NO_OPTIONAL_CHAINING",
|
||||||
"regex": "\\?\\.",
|
"regex": "\\?[\\.|\\[|\\(|@]",
|
||||||
"regexFlags": "ig",
|
"regexFlags": "ig",
|
||||||
"message": "No optional chaning (var1?.property). Do a type check instead."
|
"message": "No optional chaning (var1?.property). Do a type check instead."
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ function GetLatestPlayletLibVersionFromGithubReleases() as string
|
|||||||
if response.StatusCode() = 200
|
if response.StatusCode() = 200
|
||||||
headers = response.Headers()
|
headers = response.Headers()
|
||||||
if headers.location <> invalid
|
if headers.location <> invalid
|
||||||
|
' bs:disable-next-line NO_OPTIONAL_CHAINING
|
||||||
regex = /\/v?(\d+\.\d+\.\d+)/
|
regex = /\/v?(\d+\.\d+\.\d+)/
|
||||||
match = regex.match(headers.location)
|
match = regex.match(headers.location)
|
||||||
if match.Count() = 2
|
if match.Count() = 2
|
||||||
|
|||||||
Reference in new issue
Block a user