Skip to content

Commit 42f38c2

Browse files
Brandon RobertsSamVerschueren
Brandon Roberts
authored andcommittedApr 11, 2018
refactor(lib): Cleanup linter errors
1 parent 44cb4db commit 42f38c2

16 files changed

+14
-16
lines changed
 

‎example.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const Observable = require('rxjs/Observable').Observable;
33
const logSymbols = require('log-symbols');
44
const delay = require('delay');
5-
const Listr = require('./');
5+
const Listr = require('.');
66

77
const renderer = process.argv[2];
88

‎index.js

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const runTask = (task, context, errors) => {
1414
};
1515

1616
class Listr {
17-
1817
constructor(tasks, opts) {
1918
if (tasks && !Array.isArray(tasks) && typeof tasks === 'object') {
2019
if (typeof tasks.title === 'string' && typeof tasks.task === 'function') {

‎lib/task-wrapper.js

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ const state = require('./state');
33
const ListrError = require('./listr-error');
44

55
class TaskWrapper {
6-
76
constructor(task, errors) {
87
this._task = task;
98
this._errors = errors;

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"log-update": "^1.0.2",
5252
"ora": "^0.2.3",
5353
"p-map": "^1.1.1",
54-
"rxjs": "^5.6.0-forward-compat.0 || ^6.0.0-rc.0",
54+
"rxjs": "^5.6.0-forward-compat.0 || ^6.0.0-rc.1",
5555
"stream-to-observable": "^0.2.0",
5656
"strip-ansi": "^3.0.1"
5757
},

‎test/concurrent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {serial as test} from 'ava';
22
import delay from 'delay';
3-
import Listr from '../';
3+
import Listr from '..';
44
import SimpleRenderer from './fixtures/simple-renderer';
55
import {testOutput} from './fixtures/utils';
66

‎test/enabled.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {serial as test} from 'ava';
2-
import Listr from '../';
2+
import Listr from '..';
33
import SimpleRenderer from './fixtures/simple-renderer';
44
import {testOutput} from './fixtures/utils';
55

‎test/exit-on-error.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {serial as test} from 'ava';
2-
import Listr from '../';
2+
import Listr from '..';
33
import SimpleRenderer from './fixtures/simple-renderer';
44
import {testOutput} from './fixtures/utils';
55

‎test/output.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import test from 'ava';
22
import {Observable} from 'rxjs';
3-
import Listr from '../';
3+
import Listr from '..';
44
import SimpleRenderer from './fixtures/simple-renderer';
55
import {testOutput} from './fixtures/utils';
66

‎test/renderer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import Listr from '../';
2+
import Listr from '..';
33
import SimpleRenderer from './fixtures/simple-renderer';
44
import {testOutput} from './fixtures/utils';
55

‎test/skip.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import Listr from '../';
2+
import Listr from '..';
33
import SimpleRenderer from './fixtures/simple-renderer';
44
import {testOutput} from './fixtures/utils';
55

‎test/stream.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as fs from 'fs';
22
import * as path from 'path';
33
import test from 'ava';
44
import split from 'split';
5-
import Listr from '../';
5+
import Listr from '..';
66
import SimpleRenderer from './fixtures/simple-renderer';
77
import {testOutput} from './fixtures/utils';
88

‎test/subtask.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import Listr from '../';
2+
import Listr from '..';
33
import SimpleRenderer from './fixtures/simple-renderer';
44
import {testOutput} from './fixtures/utils';
55

‎test/task-wrapper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {serial as test} from 'ava';
2-
import Listr from '../';
2+
import Listr from '..';
33
import SimpleRenderer from './fixtures/simple-renderer';
44
import {testOutput} from './fixtures/utils';
55

‎test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import Listr from '../';
2+
import Listr from '..';
33

44
test('create', t => {
55
t.notThrows(() => new Listr());

‎test/tty.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import test from 'ava';
22
import {Observable} from 'rxjs';
3-
import Listr from '../';
3+
import Listr from '..';
44
import SimpleRenderer from './fixtures/simple-renderer';
55
import TTYRenderer from './fixtures/tty-renderer';
66
import {testOutput} from './fixtures/utils';

‎test/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import test from 'ava';
22
import {Observable as RxObservable} from 'rxjs';
33
import ZenObservable from 'zen-observable';
4-
import Listr from '../';
4+
import Listr from '..';
55
import {isListr, isObservable} from '../lib/utils';
66

77
test('isListr', t => {

0 commit comments

Comments
 (0)
Please sign in to comment.