mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-23 03:51:36 +03:00
Fix recoil lint rule
This commit is contained in:
parent
878302dd31
commit
53f3c1691d
@ -18,7 +18,15 @@ module.exports = {
|
||||
if (
|
||||
node?.init?.callee?.name &&
|
||||
typeof node.init.callee.name === "string" &&
|
||||
node.init.callee.name.startsWith("useRecoil")
|
||||
[
|
||||
'useRecoilState',
|
||||
'useRecoilFamilyState',
|
||||
'useRecoilSelector',
|
||||
'useRecoilScopedDate',
|
||||
'useRecoilScopedFamilyState',
|
||||
'useRecoilScopedSelector',
|
||||
'useRecoilValue',
|
||||
].includes(node.init.callee.name)
|
||||
) {
|
||||
const stateNameBase = node.init.arguments?.[0].name;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user