Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6171103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:09:24+00:00 2026-05-23T23:09:24+00:00

I am currently validating my JavaScript against JSLint and making progress on, it’s assisting

  • 0

I am currently validating my JavaScript against JSLint and making progress on, it’s assisting me to write better JavaScript – in particular in working with the Jquery library.

I have now come across JSHint, a fork of JSLint.
So I am wondering for web applications, which are very much JavaScript was driven, which is the better or most applicable validation tool to work against:

  • JSLint or JSHint?

I want to decide now on a validation mechanism and moving forward, use this for client side validation.

And Difference between jshint and jslint? Please explain in single javascript example.

Links:

  1. jshint– http://www.jshint.com/

  2. jslint– http://jslint.com/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T23:09:25+00:00Added an answer on May 23, 2026 at 11:09 pm

    [EDIT]
    This answer has been edited. I’m leaving the original answer below for context (otherwise the comments wouldn’t make sense).

    When this question was originally asked, JSLint was the main linting tool for JavaScript. JSHint was a new fork of JSLint, but had not yet diverged much from the original.

    Since then, JSLint has remained pretty much static, while JSHint has changed a great deal – it has thrown away many of JSLint’s more antagonistic rules, has added a whole load of new rules, and has generally become more flexible. Also, another tool ESLint is now available, which is even more flexible and has more rule options.

    In my original answer, I said that you should not force yourself to stick to JSLint’s rules; as long as you understood why it was throwing a warning, you could make a judgement for yourself about whether to change the code to resolve the warning or not.

    With the ultra-strict ruleset of JSLint from 2011, this was reasonable advice — I’ve seen very few JavaScript codesets that could pass a JSLint test. However with the more pragmatic rules available in today’s JSHint and ESLint tools, it is a much more realistic proposition to try to get your code passing through them with zero warnings.

    There may still occasionally be cases where a linter will complain about something that you’ve done intentionally — for example, you know that you should always use === but just this one time you have a good reason to use ==. But even then, with ESLint you have the option to specify eslint-disable around the line in question so you can still have a passing lint test with zero warnings, with the rest of your code obeying the rule. (just don’t do that kind of thing too often!)


    [ORIGINAL ANSWER FOLLOWS]

    By all means use JSLint. But don’t get hung up on the results and on fixing everything that it warns about. It will help you improve your code, and it will help you find potential bugs, but not everything that JSLint complains about turns out to be a real problem, so don’t feel like you have to complete the process with zero warnings.

    Pretty much any Javascript code with any significant length or complexity will produce warnings in JSLint, no matter how well written it is. If you don’t believe me, try running some popular libraries like JQuery through it.

    Some JSLint warnings are more valuable than others: learn which ones to watch out for, and which ones are less important. Every warning should be considered, but don’t feel obliged to fix your code to clear any given warning; it’s perfectly okay to look at the code and decide you’re happy with it; there are times when things that JSlint doesn’t like are actually the right thing to do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have (currently) working projects that use Javascript API to get the Facebook session
I am currently validating a client's HTML Source and I am getting a lot
Currently, I don't really have a good method of debugging JavaScript in Internet Explorer and
Currently I have an Xsd validating with this rule <xs:simpleType name='shipTo'> <xs:restriction base='xs:string'> <xs:minLength
I am currently validating user input on server side (PHP). The client side sends
I have written a function using javascript for validating a Date selected from a
I am currently looking a valiadation controls in javascript and ASP.NET and have come
Possible Duplicate: Recommendation for javascript form validation library I've got a HTML5 login form.
Currently I am working with Oracle identity federation 10.1.4.0.1. I am facing one problem
I use a tool for validating JavaScript syntax, called JavaScriptLint (javascriptlint.com). I'd like my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.