I\'m trying to enable the linting addon of the react-codemirror component in a React/Redux/TS app. The normal codemirror stuff works fine, syntax highlighting, line numbers,
I had a similar issue and fixed it by making jshint available on the window by replacing:
import '../../../node_modules/jshint/dist/jshint';
with
(window).JSHINT = require('jshint').JSHINT;