broccoli-standard

broccoli filter for standard formatting

Usage no npm install needed!

<script type="module">
  import broccoliStandard from 'https://cdn.skypack.dev/broccoli-standard';
</script>

README

broccoli-standard Build Status

Standardize your JavaScript using Standard

This plugin is heavily inspired by and based on broccoli-eslint by makepanic makepanic/broccoli-eslint.

Install

npm install --save broccoli-standard

Example

var standard = require('broccoli-standard');
tree = standard(node, options);

API

standard(node, options)

options

format

Type: String Default: 'eslint/lib/formatters/stylish'

Path path to a custom formatter (See eslint/tree/master/lib/formatters for alternatives).

fix

Type: Boolean Default: true

If the source and output files should be fixed with the standard fix option

throwOnError

Type: Boolean Default: 'false'

If an error should be thrown or not when an error is found processing the file