1.1.0 ā¢ Published 7 years ago
start-standard v1.1.0
start-standard
š Standard Style checker for Start
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 defaultoptions
ā Standard Options