mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 04:16:17 +01:00 
			
		
		
		
	don't use eslint on JSON notes, closes #70
This commit is contained in:
		@@ -28,6 +28,11 @@
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    async function validatorJavaScript(text, options) {
 | 
					    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);
 | 
					        await requireLibrary(ESLINT);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (text.length > 20000) {
 | 
					        if (text.length > 20000) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user