diff --git a/examples/index.js b/examples/index.js index 6025ee5..4a33b07 100644 --- a/examples/index.js +++ b/examples/index.js @@ -8,11 +8,7 @@ const examples = { todo } -const envVars = [ - 'LOG_LEVEL', - 'LOG_FILTER', - 'LOG_OUTPUT_MODE' -] +const envVars = ['LOG_LEVEL', 'LOG_FILTER', 'LOG_OUTPUT_MODE'] const defaultOptions = {} diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 92d1c56..52a4842 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -21,54 +21,51 @@ const paths = { ] } -export const standard = () => ( - gulp.src(paths.scripts) +export const standard = () => + gulp + .src(paths.scripts) .pipe(gulpStandard()) - .pipe(gulpStandard.reporter('default', { - breakOnError: true - })) -) + .pipe( + gulpStandard.reporter('default', { + breakOnError: true + }) + ) -export const jsonlint = () => ( - gulp.src(paths.json) +export const jsonlint = () => + gulp + .src(paths.json) .pipe(gulpJsonlint()) .pipe(gulpJsonlint.failAfterError()) .pipe(gulpJsonlint.reporter()) -) -export const watchScripts = () => ( - gulp.src(paths.scripts) - .pipe(gulpWatch(paths.scripts, vinyl => { - if (vinyl.event === 'change') { - gulplog.info(`Linted ${vinyl.relative}`) - } - })) +export const watchScripts = () => + gulp + .src(paths.scripts) + .pipe( + gulpWatch(paths.scripts, (vinyl) => { + if (vinyl.event === 'change') { + gulplog.info(`Linted ${vinyl.relative}`) + } + }) + ) .pipe(gulpStandard()) .pipe(gulpStandard.reporter('default', {})) -) -export const watchJson = () => ( - gulp.src(paths.json) - .pipe(gulpWatch(paths.json, vinyl => { - if (vinyl.event === 'change') { - gulplog.info(`Linted ${vinyl.relative}`) - } - })) +export const watchJson = () => + gulp + .src(paths.json) + .pipe( + gulpWatch(paths.json, (vinyl) => { + if (vinyl.event === 'change') { + gulplog.info(`Linted ${vinyl.relative}`) + } + }) + ) .pipe(gulpJsonlint()) .pipe(gulpJsonlint.reporter()) -) -export const lint = gulp.parallel( - jsonlint, - standard -) +export const lint = gulp.parallel(jsonlint, standard) -export const watch = gulp.parallel( - watchJson, - watchScripts -) +export const watch = gulp.parallel(watchJson, watchScripts) -export default gulp.series( - lint, - watch -) +export default gulp.series(lint, watch) diff --git a/lib/todo.js b/lib/todo.js index c576cc1..1bf9508 100644 --- a/lib/todo.js +++ b/lib/todo.js @@ -1 +1 @@ -export const todo = x => x +export const todo = (x) => x diff --git a/lib/todo.spec.js b/lib/todo.spec.js index 1bc99a4..e2ebf7c 100644 --- a/lib/todo.spec.js +++ b/lib/todo.spec.js @@ -2,7 +2,7 @@ import test from 'ava' import { todo } from './todo' -test('todo: returns argument', async t => { +test('todo: returns argument', async (t) => { t.true(todo(true), 'returns true') t.false(todo(false), 'returns false') t.is(todo('todo'), 'todo', 'returns string')