Update config to use new deletion_patterns option

Also fixed some random linter warnings.

Wait to merge until `custom_elements_apigen` is at 0.1.0.