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

Even Object Brace Linting

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.

Capabilities

Symmetric spacing on single-line objects

  • Single-line object literals or patterns must use matching spacing (either no spaces or one space) after { and before }; mismatched spacing produces a lint error. @test
  • Objects using trailing commas still respect the symmetric spacing requirement. @test

Destructuring compliance

  • Object destructuring bindings respect the same symmetric spacing; inconsistent spacing in bindings is reported as an error. @test

Import/export specifier compliance

  • Import/export named specifiers follow the same symmetric spacing rule; misaligned spacing is reported. @test

Nested content exceptions

  • Nested objects or arrays inside object literals do not require extra padding beyond the outer brace spacing expectation. @test

Implementation

@generates

API

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[]>;

Dependencies { .dependencies }

eslint-plugin-standard { .dependency }

Provides the spacing rule used to enforce even curly brace spacing.

Install with Tessl CLI

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

tile.json