When I try and commit a file, I get the error below. I can commit fine using the git cli. Any ideas?
/node_modules/@commitlint/load/node_modules/cosmiconfig/dist/index.js:79
const overrideOptions = metaConfig.config ?? {};
^
SyntaxError: Unexpected token ?
at Module._compile (internal/modules/cjs/loader.js:872:18)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)