codemirror-lint-eslint
codemirror-lint-eslint copied to clipboard
installing with npm and using require
I have done npm install of codemirror, eslint and codemirror-lint-eslint In a .js file I have: window.CodeMirror = require("codemirror") //now in index.html because this didn't work require("codemirror/mode/javascript/javascript") require("eslint") require("codemirror/addon/lint/lint.js") require("codemirror-lint-eslint")
I get an error in the file: eslint-lint.js, line 166 var errors = eslint.verify(text, config); where eslint is bound, but verify is not.
I have also tried commenting out my requires for eslint and lint, in which case I get no error from my require("codemirror-lint-eslint"), but I don't see any red dots appearing in my codemirror editor left margin either indicating js errors.
Help greatly appreciated!