For example, I have these rules:
function isValidTimestamp(timestampValue){return request.time==timestampValue;}
match /users/{userID}{allow get: if resource.auth != null;allow create:if isValidTimeStamp(request.resource.data.createdAt)}
i would like to have something like this:
function isValidTimestamp(timestampValue){
return request.time == timestampValue;
}
match /users/{userID} {
allow get: if resource.auth != null;
allow create: if isValidTimeStamp(request.resource.data.createdAt);
}
Is it possible to lint/format this file?