CodeMirror built-in linters are very limited, it (jshint) doesn't support latest js syntax.
Use js parser (we got babel/parser, meriyah, and typescript in deps) to "lint" source code, it will highlight first error, map the error to codemirror row/column.
CodeMirror built-in linters are very limited, it (jshint) doesn't support latest js syntax.
Use js parser (we got babel/parser, meriyah, and typescript in deps) to "lint" source code, it will highlight first error, map the error to codemirror row/column.