ESLint plugin providing custom rules for JavaScript Standard Style linting
Overall
score
36%
Evaluation — 36%
↓ 0.58xAgent success when using this tile
Enforces error-first callback handling for default and custom callback identifiers using linting.
callback, cb) with string, boolean, or numeric literals as the first argument is reported; null, undefined, variables, or Error instances are accepted. @test@generates
const { lintCallbacks } = require('./src/callbackLinter')
/**
* Lints provided source text for invalid first arguments on configured callback names.
* @param {string} source - JavaScript source to lint.
* @param {string[]} [extraCallbackNames] - Optional additional identifiers treated as callbacks in addition to defaults.
* @returns {Promise<{ errors: Array<{ line: number, column: number, message: string }> }>} Accumulated lint errors.
*/
function lintCallbacks(source, extraCallbackNames) {}Provides lint rules that enforce error-first callback semantics with configurable callback identifiers.
Runs linting with plugin configuration support.