dumberjs / dumber-gist

A lightweight online IDE to write JS SPA prototypes in your own GitHub gists.
https://gist.dumber.app
MIT License
28 stars 2 forks source link

TODO: lint for various formats, most importantly js and ts #32

Closed 3cp closed 2 weeks ago

3cp commented 4 years ago

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.