You are missing the rules version line at the top and also the syntax you are using is for Firebase realtime database. Try the following rules for Firestore.
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}
}