mirror of
https://git.proxmox.com/git/pve-eslint
synced 2025-08-18 02:00:50 +00:00

includes a (minimal) working wrapper Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
17 lines
318 B
JavaScript
17 lines
318 B
JavaScript
/*global module*/
|
|
module.exports = function(results) {
|
|
|
|
var output = "";
|
|
|
|
results.forEach(function(result) {
|
|
|
|
var messages = result.messages;
|
|
messages.forEach(function(message) {
|
|
output += "Problem on line " + (message.line || 0) + "\n";
|
|
});
|
|
|
|
});
|
|
|
|
return output;
|
|
};
|