eoin-obrien/ul-timetable

View on GitHub
src/util/validators.ts

Summary

Maintainability
A
0 mins
Test Coverage

When chaining calls, put method calls on new lines.
Open

const roomIdRegex = new RegExp(`^(?:${Object.keys(buildings).join('|')})(?:${floors.join('|')})[0-9]+[A-Z]?$`, 'i');
Severity: Minor
Found in src/util/validators.ts by tslint

Rule: newline-per-chained-call

Requires that chained method calls be broken apart onto separate lines.

Rationale

This style helps to keep code 'vertical', avoiding the need for side-scrolling in IDEs or text editors.

Config

Not configurable

For more information see this page.

There are no issues that match your filters.

Category
Status