mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-23 12:02:10 +03:00
Fix recoil lint rule
This commit is contained in:
parent
878302dd31
commit
53f3c1691d
@ -18,7 +18,15 @@ module.exports = {
|
|||||||
if (
|
if (
|
||||||
node?.init?.callee?.name &&
|
node?.init?.callee?.name &&
|
||||||
typeof node.init.callee.name === "string" &&
|
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;
|
const stateNameBase = node.init.arguments?.[0].name;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user