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.
it might be worth keeping this one somewhere... probably not here, though. Tracking this will be useful to make sure we update our tool accordingly.