Skip to content

[RFC]: create ESLint rule to discourage string concatenation in benchmark descriptions #129

@kgryte

Description

@kgryte
// Good...
bench( pkg, function benchmark( b ) {...} );
bench( format( '%s:len=%d', pkg, len ), function benchmark( b ) {...} );

// Bad...
bench( pkg+':len='+len, function benchmark( b ) {...} );

This can be a warning to start given the sheer number of benchmarks using string concatenation atm.

Metadata

Metadata

Assignees

Labels

FeatureTask to add a new feature.difficulty: 1Low degree of difficulty. Should be straightforward to implement and/or resolve.estimate: <2hrsTask which should take less than 2 hours.🤖 AIAllowed to use AI.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions