1.1.0 ā€¢ Published 7 years ago

start-standard v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

start-standard

npm linux build windows build coverage deps semantic-release Commitizen friendly greenkeeper

šŸŽ Standard Style checker for Start

Standard - JavaScript Style Guide Semistandard - JavaScript Style Guide happiness - JavaScript Sytle Guide

Install

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

Usage

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

const start = Start(reporter());

export const lint = () => start(
  files([ 'lib/**/*.js', 'test/**/*.js' ]),
  standard()
);

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

Arguments

To use styles other than standard, semistandard or happiness (such as standard-react) you will have to add the dependency yourself.

standard(style, options)

  • style ā€“ 'standard', 'semistandard' or 'happiness'. 'standard' by default
  • options ā€“ Standard Options