ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Standard​Format

by bcomnes ST3

:sparkles: Runs standard-format against the javascript in your ST3 window on save or manually.

Details

Installs

  • Total 3K
  • Win 711
  • OS X 1K
  • Linux 501
Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26
Windows 4 3 3 5 3 3 0 1 2 4 2 3 3 3 3 5 4 5 6 3 3 6 1 3 6 3 3 2 3 5 9 3 3 1 3 1 3 5 4 5 6 1 11 4 4 2
OS X 3 10 5 8 9 3 1 6 6 6 5 1 5 0 8 14 4 4 6 3 1 7 6 11 9 6 9 12 8 10 11 8 5 6 1 9 7 10 12 12 6 6 21 18 4 3
Linux 4 2 1 6 3 0 4 0 5 1 3 3 2 2 0 7 12 4 3 3 1 4 0 3 1 1 1 2 1 4 3 2 3 2 6 2 1 2 5 5 5 4 4 5 3 4

Readme

Source
raw.​githubusercontent.​com

Standard Format

Build Status

A Sublime Text 3 plug-in that runs standard-format against the javascript code in your ST3 window on save or manually. Can be toggled on or off. Besides compatibility details, there are no settings.

action gif

Installation

Standard Format (the Sublime Text Plug-in) requires that you install standard-format to your global path:

$ npm install -g standard-format

Install Standard Format using Package Control.

# In the command palate
- package control install
- standard format

Configuration

You can find Standard Format settings in the StandardFormat.sublime-settings file.

  • format_on_save: Boolean. Runs Standard Format on save when set to true. Use the command pallet to quickly toggle this on or off.
  • extensions: String Array. An array of file extensions that you want to be able to run Standard Format against.
  • excludes: String Array. An array of file extensions that you don't want to run against.
  • command: Optional String Array. Customize the command and flags that Standard Format runs against.
  • PATH: Optional String Array. An Array of paths to be appended to the search PATH. You must have node and standard-format in your search path. /usr/local/bin is searched by default
  • loud_error: Boolean. Specifies if you get a status bar message or error window if the subprocess encounters an error while formatting.

Hints

Standard Format will try to find and use (command to format with if set, otherwise it will fall back to) standard-format or standard.

Windows is now supported. Please open any issues that you come across.

Linter

Standard Format pairs nicely with the Sublime Text standard linter:

References