|  |  | @ -51,39 +51,6 @@ return { | 
			
		
	
		
			
				
					|  |  |  | end, | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | -- lint.linters.eslint_d = { | 
			
		
	
		
			
				
					|  |  |  | --     name = "eslint_d", | 
			
		
	
		
			
				
					|  |  |  | --     cmd = "eslint_d", | 
			
		
	
		
			
				
					|  |  |  | --     args = { | 
			
		
	
		
			
				
					|  |  |  | --         '--config=./frontend/.eslintrc.js', | 
			
		
	
		
			
				
					|  |  |  | --         '--no-warn-ignored', | 
			
		
	
		
			
				
					|  |  |  | --         '--format', | 
			
		
	
		
			
				
					|  |  |  | --         'json', | 
			
		
	
		
			
				
					|  |  |  | --         '--stdin', | 
			
		
	
		
			
				
					|  |  |  | --         '--stdin-filename', | 
			
		
	
		
			
				
					|  |  |  | --         function() | 
			
		
	
		
			
				
					|  |  |  | --             return vim.api.nvim_buf_get_name(0) | 
			
		
	
		
			
				
					|  |  |  | --         end, | 
			
		
	
		
			
				
					|  |  |  | --     }, | 
			
		
	
		
			
				
					|  |  |  | --     parser = function(output, _) | 
			
		
	
		
			
				
					|  |  |  | --         local diagnostics = {} | 
			
		
	
		
			
				
					|  |  |  | --         local decoded = vim.json.decode(output) | 
			
		
	
		
			
				
					|  |  |  | --         for _, message in ipairs(decoded[1].messages or {}) do | 
			
		
	
		
			
				
					|  |  |  | --             table.insert(diagnostics, { | 
			
		
	
		
			
				
					|  |  |  | --                 lnum = message.line - 1, | 
			
		
	
		
			
				
					|  |  |  | --                 end_lnum = message.endLine and message.endLine - 1 or nil, | 
			
		
	
		
			
				
					|  |  |  | --                 col = message.column - 1, | 
			
		
	
		
			
				
					|  |  |  | --                 end_col = message.endColumn and message.endColumn - 1 or nil, | 
			
		
	
		
			
				
					|  |  |  | --                 message = message.message, | 
			
		
	
		
			
				
					|  |  |  | --                 code = message.ruleId, | 
			
		
	
		
			
				
					|  |  |  | --                 source = "eslint_d", | 
			
		
	
		
			
				
					|  |  |  | --                 severity = severities[message.severity], | 
			
		
	
		
			
				
					|  |  |  | --             }) | 
			
		
	
		
			
				
					|  |  |  | --         end | 
			
		
	
		
			
				
					|  |  |  | --         return diagnostics | 
			
		
	
		
			
				
					|  |  |  | --     end, | 
			
		
	
		
			
				
					|  |  |  | -- } | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | lint.linters_by_ft = { | 
			
		
	
		
			
				
					|  |  |  | javascript = { "eslint" }, | 
			
		
	
		
			
				
					|  |  |  | typescript = { "eslint" }, | 
			
		
	
	
		
			
				
					|  |  | 
 |