mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-22 22:29:30 +00:00
Use regex to test node name
This commit is contained in:
@@ -41,7 +41,7 @@ const rule = ESLintUtils.RuleCreator(
|
|||||||
node.parent.object === node &&
|
node.parent.object === node &&
|
||||||
node.parent.property.type === "Identifier" &&
|
node.parent.property.type === "Identifier" &&
|
||||||
!safeScopeMethods.includes(node.parent.property.name) &&
|
!safeScopeMethods.includes(node.parent.property.name) &&
|
||||||
node.name.endsWith("cope")
|
/(^s|S)cope$/.test(node.name)
|
||||||
) {
|
) {
|
||||||
// TODO: Once oxlint supports lint rules that rely on TypeScript type-awareness,
|
// TODO: Once oxlint supports lint rules that rely on TypeScript type-awareness,
|
||||||
// Verify that the variable is actually of type ObservableScope rather than just
|
// Verify that the variable is actually of type ObservableScope rather than just
|
||||||
|
|||||||
Reference in New Issue
Block a user