To achieve consistency between Pallet projects there are unified styleguide and rules for the projects.
The JavaScript styleguide that Pallets projects follow.
The Python styleguide that Pallets projects follow.