ESLint plugin providing custom rules for JavaScript Standard Style linting
Overall
score
36%
Evaluation — 36%
↓ 0.58xAgent success when using this tile
A lint utility that rejects callback invocations using literals instead of error objects for configured callback identifiers.
callback or cb receives a literal value as the first argument; passes when using null, undefined, Error instances, or variables. @test@generates
/**
* 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) {}Provides the linting engine.
Adds rules ensuring callback invocations receive appropriate error arguments.