Where I am located, I am required to give my employer written notice of my resignation 2 weeks prior to my declared termination date.
However, I have a great relationship with my boss and I have an extremely large amount of responsibilities (ie the "bus factor" is very strong with me), I'm not sure if 2 weeks would be enough time for him to hire someone else and have me pass off all of my work. We work on projects pretty independently, so it would be a huge disruption in the project deadlines to have to hire someone and get them up to speed on the project and take over. It would make me feel a bit guilty only giving 2 weeks notice even though that's the legal requirement.
Is it "bad practice" to give notice longer than legally required? The obvious upside is that I can let my employer know that I care about the company and ensure I don't burn any bridges on the way out. The downsides is that this might be superfluous and perhaps my "bus factor" is less than I thought. Companies always find a way to bounce back after someone important leaves. The other (probably less likely) reason is maybe my boss doesn't take is very well and now my last x number of weeks are less enjoyable, or I even get terminated early.
Can anyone shed some light on this? Should I just stick to the legal requirement and try and not feel guilty about it?