fbredius/storybook

View on GitHub
lib/store/src/autoTitle.ts

Summary

Maintainability
A
0 mins
Test Coverage

Expected a 'for-of' loop instead of a 'for' loop with this simple iteration
Open

  for (let i = 0; i < storiesEntries.length; i += 1) {
Severity: Minor
Found in lib/store/src/autoTitle.ts by tslint

Rule: prefer-for-of

Recommends a 'for-of' loop over a standard 'for' loop if the index is only used to access the array being iterated.

Rationale

A for(... of ...) loop is easier to implement and read when the index is not needed.

Config

Not configurable.

Examples
"prefer-for-of": true

For more information see this page.

There are no issues that match your filters.

Category
Status