Skip to content

Commit

Permalink
refactor(lib): Cleanup linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Roberts authored and SamVerschueren committed Apr 11, 2018
1 parent 44cb4db commit 42f38c2
Show file tree
Hide file tree
Showing 16 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion example.js
Expand Up @@ -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];

Expand Down
1 change: 0 additions & 1 deletion index.js
Expand Up @@ -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') {
Expand Down
1 change: 0 additions & 1 deletion lib/task-wrapper.js
Expand Up @@ -3,7 +3,6 @@ const state = require('./state');
const ListrError = require('./listr-error');

class TaskWrapper {

constructor(task, errors) {
this._task = task;
this._errors = errors;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion 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';

Expand Down
2 changes: 1 addition & 1 deletion 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';

Expand Down
2 changes: 1 addition & 1 deletion 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';

Expand Down
2 changes: 1 addition & 1 deletion 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';

Expand Down
2 changes: 1 addition & 1 deletion 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';

Expand Down
2 changes: 1 addition & 1 deletion 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';

Expand Down
2 changes: 1 addition & 1 deletion test/stream.js
Expand Up @@ -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';

Expand Down
2 changes: 1 addition & 1 deletion 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';

Expand Down
2 changes: 1 addition & 1 deletion 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';

Expand Down
2 changes: 1 addition & 1 deletion test/test.js
@@ -1,5 +1,5 @@
import test from 'ava';
import Listr from '../';
import Listr from '..';

test('create', t => {
t.notThrows(() => new Listr());
Expand Down
2 changes: 1 addition & 1 deletion 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';
Expand Down
2 changes: 1 addition & 1 deletion 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 => {
Expand Down

0 comments on commit 42f38c2

Please sign in to comment.