Function checkTransportTime
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
export const checkTransportTime = async (flatLocation: string): Promise<TransportInformation[]> => {
const flatLocationForAPI = flatLocation.split(' ').join('+');
const requests = transportDestinations.map(destination =>
axios
.get<DirectionsResult>(getGoogleMapsAPIUrlRequest(flatLocationForAPI, destination.locationToAPI))
Expected linebreak to be 'CRLF' Open
transportDestination as transportDestinationJSON,
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
return (
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
};
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
} from '../../config/config.json';
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
transportMode,
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
}
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
'?origin=' +
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
import axios from 'axios';
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
departureTime as departureTimeJSON,
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
}));
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
maxTime: destination.maxTransportTime,
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
flatLocation +
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
'&mode=' +
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
timeInMinutes: NaN,
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
import DirectionsResult = google.maps.DirectionsResult;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
'&key=' +
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
transportSteps: informationAboutTransport.steps,
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
textTime: string;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
'https://maps.googleapis.com/maps/api/directions/json' +
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
console.log('[Google Maps]' + informationAboutTransport.duration.text + ' to ' + flatLocation);
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
import { DepartureTime, Weekdays } from '../DepartureTime/DepartureTime';
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
export const checkTransportTime = async (flatLocation: string): Promise<TransportInformation[]> => {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
const requests = transportDestinations.map(destination =>
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
export interface TransportInformation {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
const getGoogleMapsAPIUrlRequest = (flatLocation: string, transportDestination: string) => {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
(transportMode || 'driving') +
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
// TODO: handle error
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
timeInMinutes: number;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
}
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
'&departure_time=' +
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
);
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
location: destination.location,
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
const transportDestinations = (transportDestinationJSON || []).map(destination => ({
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
locationToAPI: destination.location.replace(/[&,.\s\\/-]/g, '+'),
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
const departureDate = new DepartureTime(departureTimeJSON as { weekday: keyof typeof Weekdays; time: string });
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
GoogleMapsKey
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
if (Boolean(informationAboutTransport)) {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
transportSteps: DirectionsStep[];
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
hasSatisfiedTime?: boolean;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
.then(resp => resp.data.routes[0].legs[0])
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
GoogleMapsKey,
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
location: string;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
'&destination=' +
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
location: destination.location,
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
import DirectionsStep = google.maps.DirectionsStep;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
location: destination.location,
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
transportDestination +
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
departureDate.getDepartureTime() +
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
.then(informationAboutTransport => {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
textTime: informationAboutTransport.duration.text,
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
hasSatisfiedTime: destination.maxTime >= timeInMinutes,
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
);
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
} as TransportInformation;
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
textTime: 'Cannot check ☹️',
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
const timeInMinutes = Math.floor(informationAboutTransport.duration.value / 60);
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
({
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
.get<DirectionsResult>(getGoogleMapsAPIUrlRequest(flatLocationForAPI, destination.locationToAPI))
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
import {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
const flatLocationForAPI = flatLocation.split(' ').join('+');
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
})
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
() =>
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
),
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
transportSteps: [],
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
} as TransportInformation),
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
return Promise.all(requests).then(results => results.filter(result => result !== undefined) as TransportInformation[]);
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
};
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
axios
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
timeInMinutes,
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
return {
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.
Expected linebreak to be 'CRLF' Open
.catch(
- Read upRead up
- Exclude checks
Rule: linebreak-style
Enforces a consistent linebreak style.
Notes
- Has Fix
Config
One of the following options must be provided:
-
"LF"
requires LF (\n
) linebreaks -
"CRLF"
requires CRLF (\r\n
) linebreaks
Examples
"linebreak-style": true,LF
"linebreak-style": true,CRLF
Schema
{
"type": "string",
"enum": [
"LF",
"CRLF"
]
}
For more information see this page.