Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
J

jshint

> 编程语言
Open source

JSHint is a tool that helps to detect errors and potential problems in your JavaScript code

9.1K stars0 likes2 views
WebsiteGitHub

About

JSHint is a tool that helps to detect errors and potential problems in your JavaScript code

JSHint, A Static Code Analysis Tool for JavaScript

[ Use it online • Docs • FAQ • Install • Contribute • Blog • Twitter ] JSHint is a community-driven tool that detects errors and potential problems in JavaScript code. Since JSHint is so flexible, you can easily adjust it in the environment you expect your code to execute. JSHint is publicly available and will always stay this way.

Our goal

The project aims to help JavaScript developers write complex programs without worrying about typos and language gotchas.

Any code base eventually becomes huge at some point, so simple mistakes — that would not show themselves when written — can become show stoppers and add extra hours of debugging. So, static code analysis tools come into play and help developers spot such problems. JSHint scans a program written in JavaScript and reports about commonly made mistakes and potential bugs. The potential problem could be a syntax error, a bug due to an implicit type conversion, a leaking variable, or something else entirely.

Only 15% of all programs linted on jshint.com pass the JSHint checks. In all other cases, JSHint finds some red flags that could've been bugs or potential problems.

Please note, that while static code analysis tools can spot many different kind of mistakes, it can't detect if your program is correct, fast or has memory leaks. You should always combine tools like JSHint with unit and functional tests as well as with code reviews.

Reporting a bug

To report a bug simply create a new GitHub Issue and describe your problem or suggestion. We welcome all kinds of feedback regarding JSHint including but not limited to:

  • When JSHint doesn't work as expected
  • When JSHint complains about valid JavaScript code that works in all browsers
  • When you simply want a new option or feature

Before reporting a bug, please look around to see if there are any open or closed tickets that discuss your issue, and remember the wisdom: pull request > bug report > tweet.

Who uses JSHint?

Engineers from these companies and projects use JSHint:

  • Mozilla
  • Wikipedia
  • Facebook
  • Twitter
  • Disqus
  • Medium
  • Yahoo!
  • SmugMug
  • jQuery UI (Source)
  • jQuery Mobile (Source)
  • Coursera
  • RedHat
  • SoundCloud
  • Nodejitsu
  • Yelp
  • Find My Electric
  • Voxer
  • EnyoJS
  • QuickenLoans
  • Cloud9
  • CodeClimate
  • Zendesk
  • Google
  • Codacy ref
  • Spotify

And many more!

License

JSHint is licensed under the MIT Expat license.

Prior to version 2.12.0 (release in August 2020), JSHint was partially licensed under the non-free JSON license. The 2020 Relicensing document details the process maintainers followed to change the license.

The JSHint Team

JSHint is currently maintained by Rick Waldron, Caitlin Potter, Mike Pennisi, and Luke Page. You can reach them via [email protected].

Previous Maintainers

Originating from the JSLint project in 2010, JSHint has been maintained by a number of dedicated individuals. In chronological order, they are: Douglas Crockford, Anton Kovalyov, and Mike Sherov. We appreciate their long-term commitment!

Thank you!

We really appreciate all kinds of feedback and contributions. Thanks for using and supporting JSHint!

Issues· 465 open

View all issuesOpen on GitHub
  • #3443

    Support for nullish coalescing?

    ProposalUpdated Aug 14, 2026
  • #3677

    Update lodash dependency to 4.18.0

    Updated May 18, 2026
  • #3295

    npm security vulnerability for minimatch

    P4Updated Mar 6, 2026
  • #3675

    Template literals incorrectly parse comment-like sequences

    Updated Mar 5, 2026
  • #3673

    jshint throws a DeprecationWarning - Passing invalid argument types to fs.existsSync is deprecated

    Updated Mar 1, 2026
  • #3671

    Add favicon.ico

    Updated Dec 11, 2025
  • #3670

    Add a "Run" button

    Updated Dec 10, 2025
  • #3669

    Improve maintainability and consistency of error and warning definitions.

    Updated Nov 4, 2025
  • #3447

    Feature Request: Support for top-level await

    ProposalUpdated Jun 4, 2025
  • #3489

    Allow linting of inline module scripts in html file

    P2good first issueHas PRUpdated May 14, 2025

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言