Skip to content

Instantly share code, notes, and snippets.

@phlco
Created January 14, 2017 02:31
Show Gist options
  • Save phlco/04215a2b27a1bfceb6ef2469846983eb to your computer and use it in GitHub Desktop.
Save phlco/04215a2b27a1bfceb6ef2469846983eb to your computer and use it in GitHub Desktop.

Linting Code!

Setup

Install the eslint linter globally via node

npm install -g eslint

Install the SublimeLinter framework package via Sublime's package manager

  1. Open the Command Palette (cmd+shift+p on Mac OS X).
  2. Type install and select Package Control: Install Package from the Command Palette. There will be a pause of a few seconds while Package Control finds the available packages.
  3. When the list of available packages appears, type linter and select SublimeLinter. Note: The github repository name is “SublimeLinter3”, but the plugin name remains “SublimeLinter”.
  4. After a few seconds SublimeLinter will be installed and loaded. Depending on your setup, you may see some prompts from SublimeLinter. For more information on SublimeLinter’s startup actions, see Startup actions.
  5. You will see an install message. After reading the message, restart Sublime Text 3.

http://www.sublimelinter.com/en/latest/installation.html#installing-via-pc

Install the SublimeLinter for ESLint via Sublime's package manager

  1. See steps above.
  2. When the list of available packages appears, type SublimeLinter-contrib-eslint
  3. Restart Sublime Text 3.

https://github.com/roadhump/SublimeLinter-eslint#installation

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