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

start-runner/eslint

Repository files navigation

start-eslint

npm linux build windows build coverage deps

ESLint task for Start.

Install

npm install --save-dev start-eslint
# or
yarn add --dev start-eslint

Usage

import Start from 'start';
import reporter from 'start-pretty-reporter';
import files from 'start-files';
import eslint from 'start-eslint';

const start = Start(reporter());

export const lint = () => start(
  files([ 'lib/**/*.js', 'test/**/*.js' ]),
  // `.eslintignore` is respected
  eslint()
);

This task relies on array of files and provides the same, see documentation for details.

Arguments

eslint(options, formatter)