diff --git a/services/web/.eslintrc b/services/web/.eslintrc index 499868f53c..19566de917 100644 --- a/services/web/.eslintrc +++ b/services/web/.eslintrc @@ -133,6 +133,11 @@ { "selector": "AssignmentExpression[left.object.object.name='window'][left.object.property.name='location'][left.property.name='href']", "message": "Modify location via useLocation instead of calling window.location methods directly" + }, + // prohibit using lookbehinds due to incidents with Safari simply crashing when the script is parsed + { + "selector": "Literal[regex.pattern=/\\(\\?<[!=]/]", + "message": "Lookbehind is not supported in older Safari versions." } ] }