docs: fix the code snippets in the JSDoc for the configuration options (#17699)