For faster navigation, this Iframe is preloading the Wikiwand page for JSHint.

JSHint

JSHint
原作者Anton Kovalyov,由Douglas Crockford的项目JSLint改写
首次发布2011年2月18日,​13年前​(2011-02-18
当前版本
  • 2.13.6 (2022年11月11日;穩定版本)[1][2]
編輯維基數據鏈接
源代码库 編輯維基數據鏈接
编程语言JavaScript
操作系统跨平台
语言English
类型静态代码分析
许可协议Modified MIT license
网站jshint.com

JSHint是一个静态代码分析工具,用于检查JavaScript源代码是否符合编码规范[3]。JSHint由Anton Kovalyov于2011年作为JSLint项目的一个分支创建,而JSLint是由Douglas Crockford创建的[4][5]。Anton和一些程序员认为JSLint过于“自命不凡”,并且自定义选项过少[6][7][8][9]。JSHint的维护者同时负责维护一个网页引用版本和一个命令行版本[10]

用户可以通过官方网站访问在线版本,在其中粘贴代码以进行JSHint在线运行[3]。另外,JSHint的命令行版本(作为Node.js的模块发布),允许开发者将其集成到项目的开发工作流程中,从而实现自动化代码检查流程[11]

许可

[编辑]

JSHint是在MIT许可证下发布的,除了一个仍然使用“JSLint许可证”的文件外,该许可是MIT许可的稍作修改版本。许可的附加条款规定软件应用于“善意而非邪恶”。根据自由软件基金会的描述,由于这一条款的存在,这个软件被认为是非自由软件[12]

参考文献

[编辑]
  1. ^ Release 2.13.6. 2022年11月11日 [2022年11月15日]. 
  2. ^ https://registry.npmjs.com/jshint; 检索日期: 2023年3月3日.
  3. ^ 3.0 3.1 Graham, Wayne. Beginning Facebook Game Apps Development. Apress. 2012 [2019-06-26]. ISBN 9781430241706. (原始内容存档于2017-04-25). 
  4. ^ Why I forked JSLint to JSHint. anton.kovalyov.net. Anton Kovalyov. 2011-02-20 [2018-02-26]. (原始内容存档于2011-02-24). [JSLint] has gotten uncomfortably opinionated 
  5. ^ JSHint: A Community Driven Fork of JSLint. badassjs.com. Devon Govett. 18 February 2011 [2011-02-21]. (原始内容存档于2011-02-21). [..] JSLint was getting a bit too opinionated [..] 
  6. ^ Elliot, Ian. JSHint - the (gentler) JavaScript code quality tool. www.i-programmer.info. 21 February 2011 [2018-02-26]. (原始内容存档于2011-02-23) (英国英语). 
  7. ^ Paren-Free. Brendan Eich. 2011-02-28 [2018-02-26]. (原始内容存档于2011-02-28). 
  8. ^ Help: JSHint. codekitapp.com. 2018-02-26 [2018-02-26]. (原始内容存档于2018-02-26). designed to be less opinionated and more configurable 
  9. ^ JSLint vs JSHint. Scott Logic. [2018-02-26]. (原始内容存档于2018-02-26). 
  10. ^ JSHint Team on GitHub. GitHub. [2018-02-26]. (原始内容存档于2019-10-17) (英语). Anton Kovalyov, Paul Irish, Rick Waldron, Mike Pennisi (@jugglinmike) 
  11. ^ Kovalyov, Anton. JSHint - a JavaScript Code Quality Tool. [22 January 2013]. (原始内容存档于2013-01-18). 
  12. ^ https://www.gnu.org/licenses/license-list.en.html#JSON页面存档备份,存于互联网档案馆) see the comment about the JSON license

延伸阅读

[编辑]

外部链接

[编辑]
{{bottomLinkPreText}} {{bottomLinkText}}
JSHint
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?