Skip to content

Commit

Permalink
ui: Define CodeMirror as global for eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
John Cowen authored and banks committed Oct 19, 2018
1 parent c0bd3c6 commit 615af57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui-v2/app/utils/editor/lint.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
/*global CodeMirror*/

// CodeMirror doesn't seem to have anyway to hook into whether a mode
// has already loaded, or when a mode has finished loading
// follow more or less what CodeMirror does but doesn't expose
// see codemirror/addon/mode/loadmode.js

export const createLoader = function(
$$ = document.getElementsByTagName.bind(document),
CM = CodeMirror
Expand Down

0 comments on commit 615af57

Please sign in to comment.