chore: prohibit using mergeUpdates (#3701)

This commit is contained in:
Alex Yang authored and GitHub committed 2023-08-11 15:55:17 +00:00
1 parent e9f4912665
commit 9639143df4
14 files changed
+142 -94

No files matched your search

+10
View File
@@ -31,6 +31,11 @@ const createPattern = packageName => [
message: 'Use `useNavigateHelper` instead',
importNames: ['useNavigate'],
},
{
group: ['yjs'],
message: 'Do not use this API because it has a bug',
importNames: ['mergeUpdates'],
},
];
const allPackages = [
@@ -155,6 +160,11 @@ const config = {
message: 'Use `useNavigateHelper` instead',
importNames: ['useNavigate'],
},
{
group: ['yjs'],
message: 'Do not use this API because it has a bug',
importNames: ['mergeUpdates'],
},
],
},
],