I couldn't find any law/rule stating that if a person resigns from a company after the company have filed for an patent by that person, whether his/her name will be considered in the patent if it is granted ?
There is a law (35 U.S.C. 115 ). In the U.S., the actual true inventors are the actual true inventors and must be named as the inventors. Look to your employee agreement and state law to understand the issues of ownership.
This happened to me. I contributed to an invention near the end of the 20th century and then left the company. The company applied for a patent in the early 21st century; I was asked to sign the application. The patent was eventually granted. My name appears in the patent as an inventor.