Creating a polygon with empty array of LinearRings doesn't throw an error
const { polygon } = require('@turf/helpers');
console.log(polygon([]).geometry) // {coordinates: [], type: "Polygon"}
Expected: an error is thrown
Actual: returns a valid polygon with empty coordinates