CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-eslint-config-node

tessl install tessl/npm-eslint-config-node@3.0.0

Pluggable 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%

task.mdevals/scenario-7/

Project ESLint Configuration Setup

Build a configuration generator that creates appropriate ESLint configuration files for different JavaScript project types.

Capabilities

Generate ESNext Configuration

  • Creates an ESLint configuration object for a modern JavaScript project that extends the ESNext preset @test
  • Creates an ESLint configuration for ESNext with style guide enabled @test

Generate Node.js Configuration

  • Creates an ESLint configuration object for a Node.js server project that extends the Node preset @test
  • Creates an ESLint configuration for Node.js with both base rules and style guide @test

Generate React Native Configuration

  • Creates an ESLint configuration object for a React Native mobile app that extends the React Native preset @test

Write Configuration to File

  • Writes a generated ESLint configuration object to a specified file path in JSON format @test
  • Writes a configuration with proper formatting (2-space indentation) @test

Implementation

@generates

API

/**
 * Generates ESLint configuration for ESNext environment
 * @param {boolean} includeStyleGuide - Whether to include style guide rules
 * @returns {Object} ESLint configuration object
 */
function generateESNextConfig(includeStyleGuide) {
  // IMPLEMENTATION HERE
}

/**
 * Generates ESLint configuration for Node.js environment
 * @param {boolean} includeStyleGuide - Whether to include style guide rules
 * @returns {Object} ESLint configuration object
 */
function generateNodeConfig(includeStyleGuide) {
  // IMPLEMENTATION HERE
}

/**
 * Generates ESLint configuration for React Native environment
 * @returns {Object} ESLint configuration object
 */
function generateReactNativeConfig() {
  // IMPLEMENTATION HERE
}

/**
 * Writes ESLint configuration to a file
 * @param {Object} config - ESLint configuration object
 * @param {string} filePath - Path where the config file should be written
 * @returns {void}
 */
function writeConfigFile(config, filePath) {
  // IMPLEMENTATION HERE
}

module.exports = {
  generateESNextConfig,
  generateNodeConfig,
  generateReactNativeConfig,
  writeConfigFile,
};

Dependencies { .dependencies }

@kunalgolani/eslint-config { .dependency }

Provides multi-environment ESLint configuration presets for ESNext, Node.js, and React Native environments.

@satisfied-by

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/eslint-config-node@3.0.x
tile.json