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-9/

Pre-Commit Linting Hook

Create a Git pre-commit hook that automatically validates JavaScript code quality before allowing commits.

Requirements

Create a pre-commit hook script that:

  1. Runs linting checks on staged JavaScript files (.js extension only)
  2. Blocks commits when linting errors are detected (exit code 1)
  3. Allows commits when no linting errors exist (exit code 0)
  4. Provides clear error output when commits are blocked

The hook script should be placed in .git/hooks/pre-commit and must be executable

Test Cases

  • Running git commit with clean code (no linting errors) successfully creates a commit @test
  • Running git commit with code containing linting errors blocks the commit and returns a non-zero exit code @test
  • The pre-commit hook correctly identifies multiple types of linting issues (e.g., undefined variables, unused variables) @test

Setup

Initialize a Git repository with appropriate configuration for running the pre-commit hook.

@generates

Dependencies { .dependencies }

eslint-config-node { .dependency }

Provides Node.js-specific ESLint configuration with modern JavaScript best practices.

Version

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