Format JavaScript Standard Style as Stylish (i.e. snazzy) output
94
Build a tool that processes structured linter output data and generates summary statistics. The tool should parse JSON input containing linter results and calculate key metrics about the findings.
filePath: "src/app.js" and messages: [{line: 10, column: 5, message: "Error", ruleId: "no-unused"}], extract all fields correctly @testline field, default it to 0 @testcolumn field, default it to 0 @testruleId field, default it to empty string @test[{filePath: "a.js", messages: []}, {filePath: "b.js", messages: [{line: 1}]}], output "1 problem in 2 files" @test@generates
/**
* Processes linter JSON data and returns statistics
*
* @param {string} jsonInput - JSON string with linter results
* @returns {Object} Object with { problemCount: number, fileCount: number, summary: string }
*/
function processLinterData(jsonInput) {
// Implementation
}
module.exports = {
processLinterData
};Provides utilities for parsing and normalizing linter output data.
Install with Tessl CLI
npx tessl i tessl/npm-snazzydocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10