I am attempting to make a basic forum/chat site for myself as a fun project. I have been having several issues pertaining to the rules configuration for firebase.
Here is some example code that i have tried using with firebase rules:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}
}
I have tried several things like removing the line of code entirety, Making the syntax simpler and more. It says that the specific error is in line one of my code as it is having a parse error but I cant quite figure this out. Any help is accepted.

Thank you for your time.