I was given some really good advice a very long time ago.
Have, at a minimum 3 months worth of bills in a special savings account.
It is better to have 6 months worth of bills in savings.
It is best to have 1 year worth of bills in savings.
Shoot for 3 months and build from there. Do not touch this money for any reason unless you lose your job.