Skip to content
JSLint
EntityQ1338047· pop 11· linked from 125 articles

JSLint is a static code analysis tool used in software development for checking if JavaScript source code complies with coding rules. It is provided primarily as a browser-based web application accessible through the domain jslint.com, but there are also command-line adaptations. It was created in 2002 by Douglas Crockford.

Key facts

Software.logo
128px
Software.name
JSLint
Software.title
JSLint
Software.author
Douglas Crockford
Software.developer
Douglas Crockford, Kai Zhu
Software.programming language
JavaScript
Software.operating system
Cross-platform
Software.language
English
Software.genre
Static code analysis
Software.license
Unlicense

via Wikipedia infobox

Source code

To create a JSLint report in shell: shell output screenshot file .artifact/jslint report hello.html To create a JSLint report in javascript: shell output screenshot file .artifact/jslint report hello.html To create V8 coverage report from Node.js / Npm program in shell: shell output screenshot file .artifact/coverage sqlite3 sh/index.html screenshot file .artifact/coverage sqlite3 sh/lib/sqlite3.js.html To create V8 coverage report from Node.js / Npm program in javascript: shell output screenshot file .artifact/coverage sqlite3 js/index.html screenshot file .artifact/coverage sqlite3 js/lib/sqlite3.js.html Quickstart JSLint in Vim 1. Download and save jslint.mjs , jslint wrapper vim.vim to directory ~/.vim/ 2. Add vim-command :source ~/.vim/jslint wrapper vim.vim to file ~/.vimrc If above files were saved to custom-directory, then use that directory instead, e.g.: save jslint.mjs , jslint wrapper vim.vim to directory ~/vimfiles/ vim-command :source ~/vimfiles/jslint wrapper vim.vim 3. Vim can now jslint files (via nodejs): with vim-command :SaveAndJslint with vim-key-combo screenshot Documentation jslint.mjs contains the jslint function. It parses and analyzes a source file, returning an object with information about the file. It can also take an object that sets options. index.html runs the jslint.mjs function in a web page. License JSLint is under Unlicense License. CodeMirror editor is under MIT License. Function v8CoverageListMerge is derived from MIT Licensed v8-coverage. 1. wait awhile before continuing ... click Squash and merge verify ci-success @ run verify ci-success @ verify ci-success @ click Delete branch 1. wait awhile before continuing ... click Squash and merge verify ci-success @ run verify ci-success @ verify ci-success @ click Delete branch run verify ci-

Excerpt from the source-code README · 42,024 chars · not written by Vinony

Wikidata facts

Official website
www.jslint.com
Show 3 more facts
source code repository URL
github.com/jslint-org/jslint
inception
2002-00-00
software version identifier
v2024.11.24
Sources (5)

via Wikidata · CC0

~3 min read

Article

6 sections
Contents
  • License
  • Influence
  • See also
  • References
  • Further reading
  • External links

JSLint is a static code analysis tool used in software development for checking if JavaScript source code complies with coding rules. It is provided primarily as a browser-based web application accessible through the domain jslint.com, but there are also command-line adaptations. It was created in 2002 by Douglas Crockford.

== License == Since 2021, JSLint uses the FSF / OSI approved Unlicense license.

Connections

Categories