tessl install tessl/npm-eslint-config-node@3.0.0Pluggable ESLint configuration for Node.js that extends ESNext with Node.js-specific safety checks and best practices
Agent Success
Agent success rate when using this tile
73%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.12x
Baseline
Agent success rate without this tile
65%
Build a command-line tool that analyzes Node.js source files for common code quality issues and provides feedback to developers.
Your tool should:
__dirname or __filenameprocess.exit()Sync)node checker.js ./sample.jsIssues found in ./sample.js:
Line 5: Avoid string concatenation with __dirname or __filename
Line 12: Avoid calling process.exit() directly
Line 18: Synchronous method detected (readFileSync)
Total issues: 3var path = __dirname + '/config.json', it detects the string concatenation issue @testprocess.exit(1), it detects the direct process.exit usage @testfs.readFileSync('data.txt'), it detects the synchronous method @test@generates
/**
* Analyzes a JavaScript file for Node.js code quality issues
* @param {string} filePath - Path to the file to analyze
* @returns {object} Analysis result with issues array
*/
function analyzeFile(filePath) {
// Returns: { issues: [{line, message}], count }
}
/**
* Formats and prints the analysis report
* @param {string} filePath - The analyzed file path
* @param {object} result - Analysis result from analyzeFile
*/
function printReport(filePath, result) {
// Prints formatted report
}
module.exports = { analyzeFile, printReport };Provides code analysis and linting capabilities for JavaScript.