I have been writing Cloud Firestore Security Rules for years, and I usually edit them in the same place where I do the rest of my work: Android Studio or another JetBrains IDE.

And every time, the same thing bothered me.

A .rules file controls access to production data, but in many IDE setups it is treated almost like plain text.

No proper structure awareness.

No useful formatting.