You cannot use the config property in dbt_project.yml. You should use flags instead:
warn_errorTo transform all warnings to errors:
flags:
warn_error: true
warn_error_optionsTo transform some flags to errors:
flags:
warn_error_options:
error: # Previously called "include"
- NoNodesForSelectionCriteria
- NothingToDo
warn: # Previously called "exclude"
silence: # To silence or ignore warnings
Sources: