1.1.0 ⢠Published 9 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-standardUsage
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