Skip to content
This repository was archived by the owner on Oct 19, 2019. It is now read-only.

Commit bbf85c4

Browse files
committed
Fix linting errors; Update linting
1 parent d02b77b commit bbf85c4

File tree

11 files changed

+18
-16
lines changed

11 files changed

+18
-16
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"publish": "lerna publish",
1515
"ci-test": "lerna run ci-test",
1616
"lint-fix": "lerna run lint-fix",
17+
"lint": "lerna run lint-fix",
1718
"build": "lerna run build",
1819
"gen-doc": "lerna run gen-doc",
1920
"test": "lerna run test",

packages/source-scraper-dom-runner/lib/DomRunner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { IRunnerArgs, IRunnerOptions, Runner, IRunner } from 'source-scraper-core';
1+
import { IRunner, IRunnerArgs, IRunnerOptions, Runner } from 'source-scraper-core';
22

33
import { DOMWindow, FromUrlOptions, JSDOM } from 'jsdom';
44

packages/source-scraper-dom-runner/test/tslint.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"jsRules": {},
66
"rules": {
77
"no-implicit-dependencies": false,
8-
"no-unused-expression": false,
9-
"max-line-length": [true, 140]
8+
"no-unused-expression": false
109
},
1110
"rulesDirectory": []
1211
}

packages/source-scraper-flowplayer-runner/lib/FlowplayerRunner.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { IRunnerArgs, IRunner, Runner } from 'source-scraper-core';
1+
import { IRunner, IRunnerArgs, Runner } from 'source-scraper-core';
22
import {
3-
IPuppeteerRunnerArgs, IPuppeteerRunnerOptions, IPuppeteerRunner, PuppeteerRunner
3+
IPuppeteerRunner, IPuppeteerRunnerArgs, IPuppeteerRunnerOptions, PuppeteerRunner
44
} from 'source-scraper-puppeteer-runner';
55

66
import {J SHandle } from 'puppeteer';
@@ -58,7 +58,7 @@ export interface IFlowplayerRunnerArgs extends IRunnerArgs<IFlowplayerRunnerOpti
5858
export interface IFlowplayerRunner<T> extends IRunner<T, IFlowplayerRunnerOptions, IFlowplayerRunnerArgs> { }
5959

6060
export class FlowplayerRunner<T> extends Runner<T, IFlowplayerRunnerOptions, IFlowplayerRunnerArgs>
61-
implements IPuppeteerRunner<T>{
61+
implements IPuppeteerRunner<T> {
6262
public defaultOptions: IFlowplayerRunnerOptions = {};
6363

6464
protected async exec(

packages/source-scraper-flowplayer-runner/lib/SimpleFlowplayerScraper.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ export class SimpleFlowplayerScraper
1818
public name: string = 'flowplayer';
1919
public domains: string[] = [];
2020
public urlPattern: RegExp = /.*/i;
21-
public runner: FlowplayerRunner<ISimpleFlowplayerScraperSourceData> = new FlowplayerRunner<ISimpleFlowplayerScraperSourceData>();
21+
public runner: FlowplayerRunner<ISimpleFlowplayerScraperSourceData> =
22+
new FlowplayerRunner<ISimpleFlowplayerScraperSourceData>();
2223
public defaultOptions: ISimpleFlowplayerScraperOptions = {};
2324

2425
protected async execWithArgs({ sources }: IFlowplayerRunnerArgs): Promise<ISimpleFlowplayerScraperSourceData> {

packages/source-scraper-flowplayer-runner/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
},
1212
"dependencies": {
1313
"source-scraper-core": "^1.0.0",
14+
"source-scraper-puppeteer-runner": "1.0.0",
1415
"puppeteer": "^1.7.0"
1516
},
1617
"devDependencies": {

packages/source-scraper-flowplayer-runner/tslint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": [
33
"tslint:latest"
4-
"tslint-eslint-rules"
4+
// "tslint-eslint-rules"
55
],
66
"jsRules": {},
77
"rules": {

packages/source-scraper-html-runner/test/tslint.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"jsRules": {},
66
"rules": {
77
"no-implicit-dependencies": false,
8-
"no-unused-expression": false,
9-
"max-line-length": [true, 140]
8+
"no-unused-expression": false
109
},
1110
"rulesDirectory": []
1211
}

packages/source-scraper-jwplayer-runner/lib/JWPlayerRunner.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,17 @@ export interface IJWPlayerRunnerArgs extends IPuppeteerRunnerArgs, IRunnerArgs<I
121121
poster: string;
122122
}
123123

124-
export interface IJWPlayerRunner<T> extends IRunner<T, IIJWPlayerRunnerOptions, IIJWPlayerRunnerArgs> { extends Runner<T, IJWPlayerRunnerOptions, IJWPlayerRunnerArgs> {
124+
export interface IJWPlayerRunner<T> extends IRunner<T, IJWPlayerRunnerOptions, IJWPlayerRunnerArgs> { }
125+
126+
export class JWPlayerRunner<T> extends Runner<T, IJWPlayerRunnerOptions, IJWPlayerRunnerArgs>
127+
implements IJWPlayerRunner<T> {
125128
public defaultOptions: IJWPlayerRunnerOptions = {};
126129

127130
protected async exec(
128131
url: string,
129132
scraper: (args: IJWPlayerRunnerArgs) => Promise<T>,
130133
options: IJWPlayerRunnerOptions): Promise<T> {
131-
return new PuppeteerRunner().run(url, async (args: IPuppeteerRunnerArgs) => {
134+
return new PuppeteerRunner().run(url, async (...args) => {
132135
const { page } = args;
133136
const jwplayer = await page.evaluateHandle('jwplayer()');
134137
const config = await page.evaluate(player => player.getConfig(), jwplayer);

packages/source-scraper-jwplayer-runner/test/tslint.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"jsRules": {},
66
"rules": {
77
"no-implicit-dependencies": false,
8-
"no-unused-expression": false,
9-
"max-line-length": [true, 140]
8+
"no-unused-expression": false
109
},
1110
"rulesDirectory": []
1211
}

0 commit comments

Comments
 (0)