don't use eslint on JSON notes, closes #70

This commit is contained in:
azivner 2018-03-01 22:42:51 -05:00
parent f4b57f4c57
commit 72d91d1571

View file

@ -28,6 +28,11 @@
}
async function validatorJavaScript(text, options) {
if (noteEditor.getCurrentNote().detail.mime === 'application/json') {
// eslint doesn't seem to validate pure JSON well
return [];
}
await requireLibrary(ESLINT);
if (text.length > 20000) {