<commit_before># Standard Format
[![Build Status](https://travis-ci.org/bcomnes/sublime-standard-format.svg?branch=master)](https://travis-ci.org/bcomnes/sublime-standard-format)

A Sublime Text 3 plug-in that runs [standard-format](https://github.com/maxogden/standard-format) against the javascript code in your ST3 window on save or manually.  Can be toggled on or off.  Besides compatability details, there are no settings.

## Installation

Standard Format (the Sublime Text Plug-in) requires that you install [`standard-format`](https://github.com/maxogden/standard-format) to your global path:

```sh
$ npm install -g standard-format
```

Install Standard Format using [Package Control](https://packagecontrol.io/).

```sh
# 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.
- `extensions`: String Array.  An array of file extensions that you want to be able to run Standard Format against.
- `loud_error`: Boolian.  Specifies if you get a status bar message or error window if the subprocess encounters an error while formatting.

## Linter

Standard Format pairs nicely with the Sublime Text `standard` linter:

[Flet/SublimeLinter-contrib-standard](https://github.com/Flet/SublimeLinter-contrib-standard)
<commit_msg>Turned link into a list item<commit_after># Standard Format
[![Build Status](https://travis-ci.org/bcomnes/sublime-standard-format.svg?branch=master)](https://travis-ci.org/bcomnes/sublime-standard-format)

A Sublime Text 3 plug-in that runs [standard-format](https://github.com/maxogden/standard-format) against the javascript code in your ST3 window on save or manually.  Can be toggled on or off.  Besides compatability details, there are no settings.

## Installation

Standard Format (the Sublime Text Plug-in) requires that you install [`standard-format`](https://github.com/maxogden/standard-format) to your global path:

```sh
$ npm install -g standard-format
```

Install Standard Format using [Package Control](https://packagecontrol.io/).

```sh
# 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.
- `extensions`: String Array.  An array of file extensions that you want to be able to run Standard Format against.
- `loud_error`: Boolian.  Specifies if you get a status bar message or error window if the subprocess encounters an error while formatting.

## Linter

Standard Format pairs nicely with the Sublime Text `standard` linter:

- [Flet/SublimeLinter-contrib-standard](https://github.com/Flet/SublimeLinter-contrib-standard)

{'fraction_non_alphanumeric': 0.10052173913043479, 'fraction_numerical': 0.001391304347826087, 'mean_word_length': 4.775100401606426, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2783590', 'n_tokens_mistral': 846, 'n_tokens_neox': 817, 'n_words': 303}