MCPcopy Index your code
hub / github.com/reactide/reactide / _lintCode

Method _lintCode

renderer/components/TextEditor.js:54–63  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

52
53 // Pass code to eslint linterWorker for processing
54 _lintCode(code) {
55 const model = this.editor.getModel();
56
57 monaco.editor.setModelMarkers(model, 'eslint', []);
58
59 this._linterWorker.postMessage({
60 code,
61 version: model.getVersionId(),
62 });
63 };
64
65 // Return existing model or create a new model if not exists
66 _initializeFile(path) {

Callers 1

_openFileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected