Pull them to the root config, using the `overrides` feature: https://eslint.org/docs/user-guide/configuring/configuration-files#configuration-based-on-glob-patterns
YAML is shorter, more modern, readable, and flexible than JSON. In other words, YAML >>> JSON. Auto-converted using [`yq`](https://github.com/kislyuk/yq).