According to legal documents, Eilish accused Hearle of frequently watching her enter and exit her home while saying indiscernible things in a "low and disturbing voice".
In a separate incident, Hearle allegedly sent the music star a letter that said: "You can't get what you want, unless what you want is to die for me ... You will die. What are you dying for?"
In her request for the restraining order, Eilish said: "I no longer feel safe going outside my home and enjoying basic physical exercise in my neighbourhood, as he could attempt to approach and hurt me. Every time I see him I just want to scream."
Eilish recently opened up about she feels more comfortable with fame after previously hating all aspects of life in the spotlight.
She said: "The parts I hated three years ago, those are the parts that I'm digging now.
"Fame, in general, I used to just despise it, I hated everything about it. I hated being recognised, I hated not being able to go out, I hated not being able to post a place because then people would show up at.
"And I felt stupid, because I had this thing that's really cool, people would kill for, and I didn't like it at all.
"When I say I love fame, it's just I think we should be aware we have an incredible thing that we get to do."