If the default linting isn't matching the new files, you can run this manually with trunk.
This is an example of the trunk yaml modified to run explicitly against any json files.
lint:
enabled:
- [email protected]
- git-diff-check
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
# - [email protected]
definitions:
- name: renovate-config-validator
good_without_config: true
type: pass_fail
success_codes: [0, 1]
enabled: false
runtime: node
package: renovate
files:
- json
command: [renovate-config-validator]
Then setup an action to run as pre-commit check instead.
actions:
enabled:
- trunk-check-pre-commit
- trunk-announce
- trunk-check-pre-push
- trunk-fmt-pre-commit
- trunk-upgrade-available
- renovate-config-validator
definitions:
- id: renovate-config-validator
description: Validate the config.
interactive: false
enabled: true
# package: github.com/miniscruff/changie@latest
triggers:
- git_hooks:
- pre-commit
run: 'renovate-config-validator'
notify_on_error: true