Use String.raw to avoid escaping backslashes in eslint config

This commit is contained in:
Matt
2026-06-02 01:05:01 -04:00
committed by Bill Thornton
parent 873e73020d
commit c685a6d0da
+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',