tree fixes

This commit is contained in:
zadam
2019-05-19 18:21:29 +02:00
parent ddb99a0917
commit 119d7367da
3 changed files with 29 additions and 14 deletions

View File

@@ -28,7 +28,7 @@
}
async function validatorJavaScript(text, options) {
if (glob.getActiveNote().mime === 'application/json') {
if (glob.getActiveNote() == null || glob.getActiveNote().mime === 'application/json') {
// eslint doesn't seem to validate pure JSON well
return [];
}