by Yoren Chang on WordPress.org
Replace the checkboxes with radio buttons or a select drop-down in the built-in Categories metabox and Gutenberg sidebar panel.

The checkboxes in Categories metabox are replaced with radio buttons
Thanks to Taxonomy_Single_Term, a library created by WebDevStudios, it made my work much easier on creating this plugin.
With Categories Metabox Enhanced, you can: