Flow
Flow JavaScript analyzer plugin for SublimeText 2 and 3
Labels linting
Details
Installs
- Total 4K
- Win 685
- OS X 3K
- Linux 574
| Jul 11 | Jul 10 | Jul 9 | Jul 8 | Jul 7 | Jul 6 | Jul 5 | Jul 4 | Jul 3 | Jul 2 | Jul 1 | Jun 30 | Jun 29 | Jun 28 | Jun 27 | Jun 26 | Jun 25 | Jun 24 | Jun 23 | Jun 22 | Jun 21 | Jun 20 | Jun 19 | Jun 18 | Jun 17 | Jun 16 | Jun 15 | Jun 14 | Jun 13 | Jun 12 | Jun 11 | 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 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 2 | 2 | 0 | 1 | 2 | 2 | 2 | 2 | 3 | 0 | 1 | 2 | 2 | 4 | 1 | 2 | 1 | 0 | 7 | 0 | 2 | 3 | 3 | 2 | 2 | 0 | 3 | 4 | 2 | 2 | 0 | 1 | 4 | 5 | 2 | 1 | 1 | 0 | 2 | 3 | 3 | 2 | 0 | 1 | 1 | 1 |
| OS X | 3 | 12 | 6 | 2 | 12 | 12 | 11 | 8 | 15 | 2 | 1 | 11 | 9 | 10 | 12 | 7 | 3 | 1 | 2 | 10 | 13 | 7 | 8 | 4 | 7 | 7 | 5 | 13 | 7 | 16 | 4 | 1 | 4 | 16 | 10 | 12 | 8 | 2 | 0 | 3 | 14 | 6 | 9 | 6 | 4 | 6 |
| Linux | 0 | 2 | 2 | 1 | 4 | 3 | 1 | 0 | 4 | 1 | 0 | 2 | 3 | 1 | 1 | 4 | 0 | 1 | 0 | 0 | 1 | 3 | 2 | 1 | 0 | 1 | 0 | 1 | 2 | 2 | 1 | 0 | 4 | 1 | 3 | 2 | 1 | 2 | 0 | 1 | 4 | 3 | 2 | 2 | 1 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sublime-Flow
A Sublime package for Flow, the static JavaScript analyzer.
- Run Flow on JavaScript projects from SublimeText
- Linux and OS X are supported.
Prerequisites
- Flow must be installed on your system. It's recommended to install
flowto/usr/local/bin/. - To allow Flow to work in your project directory you must either
- run
flow initin your project directory - or create an empty
.flowconfigfile in your project's root directory
- run
Installation
Using Package Control:
- Install the Package Control plugin if you don't have it
- Press Ctrl+Shift+P to bring up the Command Palette (or use Tools > Command Palette menu)
- Select Package Control: Install Package
- Type 'Flow' to find Flow for Sublime Text 2 and 3
- Select 'Flow for Sublime Text 2 and 3' to install
Not using Package Control:
- Get files from the package archive
- unzip to your Packages/Flow directory, for example:
- Linux: ~/.config/sublime-text-2/Packages/JSLint
- Mac: ~/Library/Application Support/Sublime Text 2/Packages/JSLint
- Windows: %APPDATA%/Sublime Text 2/Packages/JSLint
- Relaunch Sublime Text
Usage
Flow checks entire directories. You must run flow init in your project directory, or manually create a .flowconfig file there, before Flow can be used on it.
Any JavaScript files that you want checked with Flow must include the following line in their headers:
/* @flow */
Sublime-Flow includes both a command plug-in and a build system.
There are several ways to run the Flow command:
- Bring up the Command Palette (
Command+Shift+Pon OS X,Control+Shift+Pon Linux/Windows), then typeFlow. - Click the Tools > Flow menu entry.
- Press
CTRL+F.
Using the Flow build system:
- Set the Build System to Flow, then run Build (
Command+Bon OSX) - Alternately, set the Build System to automatic; the Flow build system will be selected for
.jsfiles automatically. If another build system has already been configured to work with.jsfiles, this may not work.
Settings
- Navigate to Preferences > Package Settings > Flow > Settings - Default.
- To preserve custom settings:
- copy default settings to Preferences > Package Settings > Flow > Settings - User
- modify them to your requirements