Flow
Flow JavaScript analyzer plugin for SublimeText 2 and 3
Labels linting
Details
Installs
- Total 13K
- Win 3K
- Mac 8K
- Linux 2K
Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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
flow
to/usr/local/bin/
. - To allow Flow to work in your project directory you must either
- run
flow init
in your project directory - or create an empty
.flowconfig
file 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+P
on OS X,Control+Shift+P
on 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+B
on OSX) - Alternately, set the Build System to automatic; the Flow build system will be selected for
.js
files automatically. If another build system has already been configured to work with.js
files, 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