Skip to content

Instantly share code, notes, and snippets.

@christophehurpeau
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christophehurpeau/3b27730d11457598eff0 to your computer and use it in GitHub Desktop.
Save christophehurpeau/3b27730d11457598eff0 to your computer and use it in GitHub Desktop.
Install phpcs and jshint in SublimeText 3

First, dependencies

sudo apt-get install php-cli php-pear
sudo pear install PHP_CodeSniffer

sudo npm install -g jshint jscs

Then install with package control

Ctrl + Shift + P: Install Package

Install :

  • SublimeLinter
  • SublimeLinter-phpcs
  • SublimeLinter-jshint
  • SublimeLinter-jscs

Configuration

Preferences > Packages Settings > SublimeLinter > Settings - User

"mark_style": "outline" see [http://www.sublimelinter.com/en/latest/mark_styles.html]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment