Use String.raw to avoid escaping backslashes in eslint config

This commit is contained in:
Matt authored and Bill Thornton committed 2026-06-02 01:05:01 -04:00
1 parent 873e73020d
commit c685a6d0da
1 file changed
+1 -1
+1 -1
View File
@@ -60,7 +60,7 @@ export default tseslint.config(
'error',
{
'capIsNewExceptions': ['jQuery.Deferred'],
'newIsCapExceptionPattern': '\\.default$'
'newIsCapExceptionPattern': String.raw`\.default$`
}
],
'no-duplicate-imports': 'error',