The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix recoil lint rule
Charles Bochet53f3c1691d7d
diff --git a/packages/eslint-plugin-twenty/rules/matching-state-variable.js b/packages/eslint-plugin-twenty/rules/matching-state-variable.jsindex 4baa10ac352..16211c15d7e 100644--- a/packages/eslint-plugin-twenty/rules/matching-state-variable.js+++ b/packages/eslint-plugin-twenty/rules/matching-state-variable.js@@ -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;