[SalesForce] Enabling Enhanced Notes in scratch org

I have a package that I'd like to develop using Salesforce DX and whose functionality includes inserting ContentNote objects. Since my scratch orgs by default do not have the enhanced note feature activated, pushing source results in "Invalid type: ContentNote" errors.

Is there any way to enable enhanced notes from either SFDX or the Metadata API? I've reviewed the Scratch Org Definition File documentation and cannot determine how to activate this feature, nor is there a NoteSettings entity in the Metadata API.

Best Answer

Nowadays, here is the setting:

{
    "settings": {
        "enhancedNotesSettings": {
            "enableEnhancedNotes": true
        }
    }
}