ESLint plugin providing custom rules for JavaScript Standard Style linting
Overall
score
36%
Evaluation — 36%
↓ 0.58xAgent success when using this tile
Build a lint helper that enforces symmetrical spacing inside curly braces for single-line object literals, patterns, and import/export named clauses. The linter should use the dependency below to apply this spacing rule.
{ and before }; mismatched spacing produces a lint error. @test@generates
export type LintMessage = {
ruleId: string;
message: string;
line: number;
column: number;
};
export type LintResult = {
filePath: string;
errorCount: number;
messages: LintMessage[];
};
export async function lintObjectSpacing(
codeSamples: Array<{ filePath: string; contents: string }>
): Promise<LintResult[]>;Provides the spacing rule used to enforce even curly brace spacing.