Explanation
Expresses the desire or effort to prevent something: 'so as not to...', 'to avoid...'.
Formation
Verb-dictionary form + ことのないように
Detailed explanation
Verbる ことのないように is used to show that one is trying or intending to prevent some action from happening. It's like 'so that this doesn't happen' or 'in order not to...'.
Examples
Kuruma o nakusu koto no nai you ni, chuushajou de kanarazu rokku shimashou.
Lock your car in the parking lot so you don't lose it.
Kaze o hiku koto no nai you ni, te o yoku araimashou.
Wash your hands well so you don't catch a cold.
Shiken ni ochiru koto no nai you ni, mainichi benkyou shimashou.
Study every day so you don't fail the exam.
Machigai o suru koto no nai you ni, shigoto o shinchou ni okonaimashou.
Let's work carefully to avoid making mistakes.
Practice
Grammar content sourced from hanabira.org.