Is there a plugin for checking jQuery code?

Is there a jQuery plugin that can check our code before running it?

Example:

I am writing this:

jQuery('.myclass')css('color','red');

The plugin will show me some message like "analysis error string ..." because I forgot the period

Or:

function test() {
    alert('test');
...
tet();

Message: Function tet()does not exist.

EDIT: maybe it could be some kind of Firefox plugin?

+3
source share
3 answers

It cannot be a plugin, because if you have syntax errors in your code, the browser will stop execution and display an error. JSLint is an online service that you can use to validate your javascript.

+6
source

jQuery-lint - a script, jQuery jQuery API.

+2

As Darin Dimitrov said, jQuery is not a language for special syntax, but it is a javascript library, so syntax checking should be done using javascript

If you are using an IDE like Eclipse , there are javascript plugins like spket , aptana which will help you learn about some syntax errors

0
source

Source: https://habr.com/ru/post/1744487/


All Articles