A Yom Tov that falls on the eve of Shabbat – one may not establish an eruv with it, neither eruvei chatzerot nor eruvei techumin, as it appears like one who is repairing something. And there is one who wishes to say that if he placed an eruv tavshilin – it is permitted, for behold, all needs of Shabbat are performed on it (Hagahot Ashri). And there are those who disagree (Ran, chapter two), for this is not related to eruv tavshilin, and our teacher, the Rema, ruled accordingly. However, one may establish an eruv on condition during the two days of Yom Tov of the Diaspora, when they fall on Thursday and Friday and he remembered on the first day, according to the condition of the eruv tavshilin in the previous siman. And this is regarding eruvei chatzerot, but eruvei techumin even with a condition is forbidden, because this is like acquiring a place of residence on Yom Tov and it is forbidden.
יום טוב שחל להיות בערב שבת – אין מערבין בו לא עירובי חצרות ולא עירובי תחומין, דמיחזי כמתקן דבר. ויש רוצה לומר דבהניח עירובי תבשילין – מותר, שהרי כל צרכי שבת נעשין בו (הג"א). ויש חולקין (ר"ן פרק שני), דאין זה עניין לעירובי תבשילין, וכן פסק רבינו הרמ"א. אבל יכול לערב על תנאי בשני ימים טובים של גליות, כשחלו בחמישי וששי ונזכר ביום הראשון, כהתנאי שבעירוב תבשילין שבסימן הקודם. וזהו בעירובי חצרות, אבל עירובי תחומין גם בתנאי אסור, לפי שזהו כקונה בית מושב ביום טוב ואסור.