filmov
tv
How to install SublimeLinter and JSHint in Sublime Text

Показать описание
In this short video you will learn how to add SublimeLinter and JSHint to the extremely popular Sublime Text editor.
BLOG POST:
Subscribe and Get More Great Tips!
Check me out around the web:
------------------------------------------------------------
------------------------------------------------------------
Description
------------------------------------------------------------
One of the tools essential for enforcing good JavaScript code habits is JSHint. JSHint is a forked version of JSLint originally created by Douglas Crockford. As Crockford once said at a Google Tech Talk that JSLint “will hurt your feelings”. Where JSHint varies from JSLint is that it is both community supported and allows for customizations and disabling features. It can be configured to be slightly less picky when evaluating your code.
Setting up JSHint in Sublime Text is simple but does require a few steps.
1. Installing Sublime Text Package Manager
2. Installing SublimeLinter 3
SublimeLinter is a plugin for Sublime Text that provides linters for various programming languages including Python, JavaScript, CSS, and Ruby. A linter is basically a plugin within your code editor that notifies you of stylistic or programming errors. If you read the documentation it states that “SublimeLinter itself is only a framework for linters. The linters are distributed as independent Sublime Text 3 plugins.”
To install this package in Sublime Text use the shortcut "Command+Shift+P" to open the “Command Palette” and type in "Package Control:Install Package". Next type in "SublimeLinter" and click to install.
3. Installing SublimeLinter-Jshint
Now that the framework is installed you will need to install the specific linter you are interested in. In this example we will be using JSHint. Again open the Command Palette and install the package "SublimeLinter-jshint".
4. Installing Node.Js And SublimeLinter-Jshint
Once that is done your last step is to fire up your trusty terminal and enter:
npm install -g jshint
// sudo npm install -g jshint (if you have permission issues)
That’s it! You are now free to be harassed by your linter of choice.
BLOG POST:
Subscribe and Get More Great Tips!
Check me out around the web:
------------------------------------------------------------
------------------------------------------------------------
Description
------------------------------------------------------------
One of the tools essential for enforcing good JavaScript code habits is JSHint. JSHint is a forked version of JSLint originally created by Douglas Crockford. As Crockford once said at a Google Tech Talk that JSLint “will hurt your feelings”. Where JSHint varies from JSLint is that it is both community supported and allows for customizations and disabling features. It can be configured to be slightly less picky when evaluating your code.
Setting up JSHint in Sublime Text is simple but does require a few steps.
1. Installing Sublime Text Package Manager
2. Installing SublimeLinter 3
SublimeLinter is a plugin for Sublime Text that provides linters for various programming languages including Python, JavaScript, CSS, and Ruby. A linter is basically a plugin within your code editor that notifies you of stylistic or programming errors. If you read the documentation it states that “SublimeLinter itself is only a framework for linters. The linters are distributed as independent Sublime Text 3 plugins.”
To install this package in Sublime Text use the shortcut "Command+Shift+P" to open the “Command Palette” and type in "Package Control:Install Package". Next type in "SublimeLinter" and click to install.
3. Installing SublimeLinter-Jshint
Now that the framework is installed you will need to install the specific linter you are interested in. In this example we will be using JSHint. Again open the Command Palette and install the package "SublimeLinter-jshint".
4. Installing Node.Js And SublimeLinter-Jshint
Once that is done your last step is to fire up your trusty terminal and enter:
npm install -g jshint
// sudo npm install -g jshint (if you have permission issues)
That’s it! You are now free to be harassed by your linter of choice.
Комментарии