CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-eslint-plugin-standard

ESLint plugin providing custom rules for JavaScript Standard Style linting

Overall
score

36%

Evaluation36%

0.58x

Agent success when using this tile

Overview
Eval results
Files

task.mdevals/scenario-8/

Callback Error Guard Linting

A lint utility that rejects callback invocations using literals instead of error objects for configured callback identifiers.

Capabilities

Linting default callbacks

  • Lints code strings and reports a violation when a callback named callback or cb receives a literal value as the first argument; passes when using null, undefined, Error instances, or variables. @test

Custom callback identifiers

  • Accepts additional callback identifier names to lint and applies the same literal-rejection behavior. @test

Helpful output

  • Returns lint results including the count of errors and the messages for each violation. @test

Implementation

@generates

API

/**
 * Lints a JavaScript snippet for invalid error arguments in callback invocations.
 *
 * @param {string} source - Code to lint.
 * @param {{ callbackNames?: string[] }} [options] - Extra callback identifiers to check alongside defaults.
 * @returns {Promise<{ errorCount: number, messages: string[] }>} - Number of violations and their messages.
 */
async function lintSnippet(source, options) {}

Dependencies { .dependencies }

eslint { .dependency }

Provides the linting engine.

eslint-plugin-standard { .dependency }

Adds rules ensuring callback invocations receive appropriate error arguments.

Install with Tessl CLI

npx tessl i tessl/npm-eslint-plugin-standard@5.0.0
What are skills?

tile.json