mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-02-28 18:39:59 -06:00
fix eslint validation
This commit is contained in:
4
libraries/codemirror/addon/lint/eslint.js
vendored
4
libraries/codemirror/addon/lint/eslint.js
vendored
@@ -29,8 +29,8 @@
|
||||
|
||||
async function validatorJavaScript(text, options) {
|
||||
if (glob.isMobile()
|
||||
|| glob.getActiveTabNote() == null
|
||||
|| glob.getActiveTabNote().mime === 'application/json') {
|
||||
|| glob.getActiveContextNote() == null
|
||||
|| glob.getActiveContextNote().mime === 'application/json') {
|
||||
// eslint doesn't seem to validate pure JSON well
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user