Chore: eslint forbid useHotkeys (#1777)

- add eslint rule
This commit is contained in:
brendanlaschke
2023-09-30 08:25:34 +02:00
committed by GitHub
parent ab4f978a00
commit c06712f161
4 changed files with 16 additions and 5 deletions

View File

@ -87,6 +87,11 @@ module.exports = {
'group': ['@tabler/icons-react'],
'message': 'Icon imports are only allowed for `@/ui/icon`',
},
{
'group': ['react-hotkeys-hook'],
"importNames": ["useHotkeys"],
'message': 'Please use the custom wrapper: `useScopedHotkeys`',
},
],
},
],