From 42f38c210217cc3fc7c04b837c16fe4aa51402aa Mon Sep 17 00:00:00 2001 From: Brandon Roberts Date: Thu, 5 Apr 2018 11:18:10 -0500 Subject: [PATCH] refactor(lib): Cleanup linter errors --- example.js | 2 +- index.js | 1 - lib/task-wrapper.js | 1 - package.json | 2 +- test/concurrent.js | 2 +- test/enabled.js | 2 +- test/exit-on-error.js | 2 +- test/output.js | 2 +- test/renderer.js | 2 +- test/skip.js | 2 +- test/stream.js | 2 +- test/subtask.js | 2 +- test/task-wrapper.js | 2 +- test/test.js | 2 +- test/tty.js | 2 +- test/utils.js | 2 +- 16 files changed, 14 insertions(+), 16 deletions(-) diff --git a/example.js b/example.js index 8bdb4c0..134b734 100644 --- a/example.js +++ b/example.js @@ -2,7 +2,7 @@ const Observable = require('rxjs/Observable').Observable; const logSymbols = require('log-symbols'); const delay = require('delay'); -const Listr = require('./'); +const Listr = require('.'); const renderer = process.argv[2]; diff --git a/index.js b/index.js index 50e8744..5819627 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,6 @@ const runTask = (task, context, errors) => { }; class Listr { - constructor(tasks, opts) { if (tasks && !Array.isArray(tasks) && typeof tasks === 'object') { if (typeof tasks.title === 'string' && typeof tasks.task === 'function') { diff --git a/lib/task-wrapper.js b/lib/task-wrapper.js index d6d53e1..ebb52e9 100644 --- a/lib/task-wrapper.js +++ b/lib/task-wrapper.js @@ -3,7 +3,6 @@ const state = require('./state'); const ListrError = require('./listr-error'); class TaskWrapper { - constructor(task, errors) { this._task = task; this._errors = errors; diff --git a/package.json b/package.json index 3e72be9..167ac04 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "log-update": "^1.0.2", "ora": "^0.2.3", "p-map": "^1.1.1", - "rxjs": "^5.6.0-forward-compat.0 || ^6.0.0-rc.0", + "rxjs": "^5.6.0-forward-compat.0 || ^6.0.0-rc.1", "stream-to-observable": "^0.2.0", "strip-ansi": "^3.0.1" }, diff --git a/test/concurrent.js b/test/concurrent.js index a228f9a..8a1c095 100644 --- a/test/concurrent.js +++ b/test/concurrent.js @@ -1,6 +1,6 @@ import {serial as test} from 'ava'; import delay from 'delay'; -import Listr from '../'; +import Listr from '..'; import SimpleRenderer from './fixtures/simple-renderer'; import {testOutput} from './fixtures/utils'; diff --git a/test/enabled.js b/test/enabled.js index 47c45fb..ac19cb1 100644 --- a/test/enabled.js +++ b/test/enabled.js @@ -1,5 +1,5 @@ import {serial as test} from 'ava'; -import Listr from '../'; +import Listr from '..'; import SimpleRenderer from './fixtures/simple-renderer'; import {testOutput} from './fixtures/utils'; diff --git a/test/exit-on-error.js b/test/exit-on-error.js index b94c0e2..e9bfcf6 100644 --- a/test/exit-on-error.js +++ b/test/exit-on-error.js @@ -1,5 +1,5 @@ import {serial as test} from 'ava'; -import Listr from '../'; +import Listr from '..'; import SimpleRenderer from './fixtures/simple-renderer'; import {testOutput} from './fixtures/utils'; diff --git a/test/output.js b/test/output.js index 6996766..30fc3dc 100644 --- a/test/output.js +++ b/test/output.js @@ -1,6 +1,6 @@ import test from 'ava'; import {Observable} from 'rxjs'; -import Listr from '../'; +import Listr from '..'; import SimpleRenderer from './fixtures/simple-renderer'; import {testOutput} from './fixtures/utils'; diff --git a/test/renderer.js b/test/renderer.js index 868d609..711172f 100644 --- a/test/renderer.js +++ b/test/renderer.js @@ -1,5 +1,5 @@ import test from 'ava'; -import Listr from '../'; +import Listr from '..'; import SimpleRenderer from './fixtures/simple-renderer'; import {testOutput} from './fixtures/utils'; diff --git a/test/skip.js b/test/skip.js index 6f1fc55..e62fc4c 100644 --- a/test/skip.js +++ b/test/skip.js @@ -1,5 +1,5 @@ import test from 'ava'; -import Listr from '../'; +import Listr from '..'; import SimpleRenderer from './fixtures/simple-renderer'; import {testOutput} from './fixtures/utils'; diff --git a/test/stream.js b/test/stream.js index c458213..4241b19 100644 --- a/test/stream.js +++ b/test/stream.js @@ -2,7 +2,7 @@ import * as fs from 'fs'; import * as path from 'path'; import test from 'ava'; import split from 'split'; -import Listr from '../'; +import Listr from '..'; import SimpleRenderer from './fixtures/simple-renderer'; import {testOutput} from './fixtures/utils'; diff --git a/test/subtask.js b/test/subtask.js index bd4697b..5138f61 100644 --- a/test/subtask.js +++ b/test/subtask.js @@ -1,5 +1,5 @@ import test from 'ava'; -import Listr from '../'; +import Listr from '..'; import SimpleRenderer from './fixtures/simple-renderer'; import {testOutput} from './fixtures/utils'; diff --git a/test/task-wrapper.js b/test/task-wrapper.js index 74c9a9a..d457de3 100644 --- a/test/task-wrapper.js +++ b/test/task-wrapper.js @@ -1,5 +1,5 @@ import {serial as test} from 'ava'; -import Listr from '../'; +import Listr from '..'; import SimpleRenderer from './fixtures/simple-renderer'; import {testOutput} from './fixtures/utils'; diff --git a/test/test.js b/test/test.js index 2bfb266..b1d4d1d 100644 --- a/test/test.js +++ b/test/test.js @@ -1,5 +1,5 @@ import test from 'ava'; -import Listr from '../'; +import Listr from '..'; test('create', t => { t.notThrows(() => new Listr()); diff --git a/test/tty.js b/test/tty.js index 4e8f25f..9629178 100644 --- a/test/tty.js +++ b/test/tty.js @@ -1,6 +1,6 @@ import test from 'ava'; import {Observable} from 'rxjs'; -import Listr from '../'; +import Listr from '..'; import SimpleRenderer from './fixtures/simple-renderer'; import TTYRenderer from './fixtures/tty-renderer'; import {testOutput} from './fixtures/utils'; diff --git a/test/utils.js b/test/utils.js index 90ef87a..9766d01 100644 --- a/test/utils.js +++ b/test/utils.js @@ -1,7 +1,7 @@ import test from 'ava'; import {Observable as RxObservable} from 'rxjs'; import ZenObservable from 'zen-observable'; -import Listr from '../'; +import Listr from '..'; import {isListr, isObservable} from '../lib/utils'; test('isListr', t => {