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%
Create a configuration builder that composes layered ESLint rule sets for different JavaScript environments.
Build a system that generates ESLint configurations by composing base environment rules with optional style guide rules. Your system should support:
Each configuration should be a valid ESLint configuration object with:
extends array (for composition)rules object (for ESLint rule definitions)no-var and prefer-const @testno-path-concat @test.eslintrc file correctly merges rules from extended configs @test@generates
/**
* Generates an ESNext base configuration with modern JavaScript rules
* @returns {Object} ESLint configuration object with rules for ES2015+ code
*/
function generateESNextConfig() {
// IMPLEMENTATION HERE
}
/**
* Generates a Node.js configuration that extends ESNext
* @param {string} baseConfigPath - Path to the base configuration to extend
* @returns {Object} ESLint configuration object with Node.js-specific rules
*/
function generateNodeConfig(baseConfigPath) {
// IMPLEMENTATION HERE
}
/**
* Generates a style guide configuration with formatting rules
* @returns {Object} ESLint configuration object with code style rules
*/
function generateStyleGuideConfig() {
// IMPLEMENTATION HERE
}
/**
* Composes multiple ESLint configurations into a single .eslintrc file
* @param {string[]} configPaths - Array of configuration paths to extend
* @param {Object} additionalRules - Optional additional rules to override
* @returns {Object} Combined ESLint configuration object
*/
function composeConfigs(configPaths, additionalRules = {}) {
// IMPLEMENTATION HERE
}
module.exports = {
generateESNextConfig,
generateNodeConfig,
generateStyleGuideConfig,
composeConfigs
};Provides composable ESLint configurations for multiple JavaScript environments including ESNext, Node.js, and style guides.