/prettier-semistandard

Prettier with Semistandard config

Primary LanguageJavaScriptMIT LicenseMIT

prettier-semistandard Circle CI

This tool combines the prettier pretty-printer with the popular configuration-free JavaScript Standard Style.

API

import format from 'prettier-semistandard';
import { readFileSync } from 'fs';

const source = readFileSync('index.js', 'utf8');
format(
  source
).then(
  console.log
);

CLI

Installation

$ yarn global add prettier-semistandard

Usage

$ prettier-semistandard --help

  Usage
    $ prettier-semistandard [<file|glob> ...]

  Examples
    $ prettier-semistandard
    $ prettier-semistandard index.js
    $ prettier-semistandard foo.js bar.js
    $ prettier-semistandard index.js src/**/*.js