Fiszcz/OLX-flats-notificator

View on GitHub
src/utils/puppeteer.ts

Summary

Maintainability
A
0 mins
Test Coverage

Expected linebreak to be 'CRLF'
Open

    if (selector.startsWith('//')) elementForSelector = (await element.$x(selector))[0];
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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


Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 (
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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

};
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 click = async (page: Page, selector: string) => {
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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


Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 getElementForSelector = async (element: ElementHandle | Page, selector: string) => {
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 (
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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

    }
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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

    else elementsForSelector = await rootElement.$$(selector);
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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


Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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

    try {
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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

                (await elementForSelector.$eval('*', element => {
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 (selector.startsWith('//')) elementsForSelector = await rootElement.$x(selector);
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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


Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 element.textContent;
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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

            );
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 elementForSelector || undefined;
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 undefined;
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 getElements = async (rootElement: ElementHandle | Page, selector: string) => {
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 {
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 {
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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

    }
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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


Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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

};
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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


Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 (elementForSelector)
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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

    try {
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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

    await newPage.goto(url);
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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

};
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 elementForSelector = await getElementForSelector(rootElement, selector);
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 {
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 (elementForSelector)
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 newPage;
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 (elementForSelector) await elementForSelector.click();
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 elementsForSelector;
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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

    }
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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

                (await elementForSelector.$eval('*', element => {
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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

};
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 openPageOnURL = async (browser: Browser, url: string) => {
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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


Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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

    let elementForSelector: ElementHandle | null;
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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

};
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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

};
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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

            );
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 newPage = await browser.newPage();
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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

    try {
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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

                })) || undefined
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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

                })) || undefined
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 elementForSelector = await getElementForSelector(rootElement, selector);
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 element.getAttribute(attribute);
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 undefined;
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 elementForSelector = await getElementForSelector(page, selector);
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 getAttributeValue = async (rootElement: ElementHandle | Page, selector: string, attribute: string) => {
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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


Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 { Browser, ElementHandle, Page } from 'puppeteer';
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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

    else elementForSelector = await element.$(selector);
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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

    let elementsForSelector: ElementHandle[] | null;
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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 getTextContent = async (rootElement: ElementHandle | Page, selector: string) => {
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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;
Severity: Minor
Found in src/utils/puppeteer.ts by tslint

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.

There are no issues that match your filters.

Category
Status