SkillAgentSearch skills...

Jslint

JSLint, The JavaScript Code Quality and Coverage Tool

Install / Use

/learn @jslint-org/Jslint
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<img align="left" height="80" src="asset_image_logo_256.svg"/> JSLint, The JavaScript Code Quality and Coverage Tool

Douglas Crockford douglas@crockford.com

Status

| Branch | master<br>(v2026.2.28) | beta<br>(Web Demo) | alpha<br>(Development) | |--:|:--:|:--:|:--:| | CI | ci | ci | ci | | Coverage | coverage | coverage | coverage | | Demo | <img src="asset_image_logo_256.svg" height="32"> | <img src="asset_image_logo_256.svg" height="32"> | <img src="asset_image_logo_256.svg" height="32"> | | Artifacts | <img src="asset_image_folder_open_solid.svg" height="30"> | <img src="asset_image_folder_open_solid.svg" height="30"> | <img src="asset_image_folder_open_solid.svg" height="30"> |

<br><br>

Table of Contents

  1. Web Demo

  2. Web Demo Archived

  3. Quickstart Install

  4. Quickstart JSLint Report

  5. Quickstart V8 Coverage Report

  6. Quickstart JSLint in CodeMirror

  7. Quickstart JSLint in Vim

  8. Quickstart JSLint in VSCode

  9. Documentation

  10. Package Listing

  11. Changelog

  12. License

  13. Devops Instruction

<br><br>

Web Demo

  • https://www.jslint.com

screenshot

<br><br>

Web Demo Archived

<br><br>

Quickstart Install

<br><br>

To install, just download and save https://www.jslint.com/jslint.mjs to file:

#!/bin/sh

curl -L https://www.jslint.com/jslint.mjs > jslint.mjs
  • shell output

screenshot

<br><br>

To run jslint.mjs in shell:

#!/bin/sh

printf "console.log('hello world');\n" > hello.js

node jslint.mjs hello.js
  • shell output

screenshot

<br><br>

To import jslint.mjs in ES Module environment:

#!/bin/sh

node --input-type=module --eval '

/*jslint devel*/

// Import JSLint in ES Module environment.

import jslint from "./jslint.mjs";

let globals = ["caches", "indexedDb"];
let options = {browser: true};
let result;
let source = "console.log(\u0027hello world\u0027);\n";

// JSLint <source> and print <formatted_message>.

result = jslint.jslint(source, options, globals);
result.warnings.forEach(function ({
    formatted_message
}) {
    console.error(formatted_message);
});

'
  • shell output

screenshot

<br><br>

To import jslint.mjs in CommonJS environment:

#!/bin/sh

node --eval '

/*jslint devel*/
(async function () {
    let globals = ["caches", "indexedDb"];
    let jslint;
    let options = {browser: true};
    let result;
    let source = "console.log(\u0027hello world\u0027);\n";

// Import JSLint in CommonJS environment.

    jslint = await import("./jslint.mjs");
    jslint = jslint.default;

// JSLint <source> and print <formatted_message>.

    result = jslint.jslint(source, options, globals);
    result.warnings.forEach(function ({
        formatted_message
    }) {
        console.error(formatted_message);
    });
}());

'
  • shell output

screenshot

<br><br>

To JSLint entire directory in shell:

#!/bin/sh

# JSLint directory '.'

node jslint.mjs .
  • shell output

screenshot

<br><br>

Quickstart JSLint Report

<br><br>

To create a JSLint report in shell:

#!/bin/sh

printf "function foo() {console.log('hello world');}\n" > hello.js

# Create JSLint report from file 'hello.js' in shell.

node jslint.mjs \
    jslint_report=.artifact/jslint_report_hello.html \
    hello.js
  • shell output

screenshot

screenshot

<br><br>

To create a JSLint report in javascript:

#!/bin/sh

node --input-type=module --eval '

/*jslint devel*/
import jslint from "./jslint.mjs";
import fs from "fs";
(async function () {
    let result;
    let source = "function foo() {console
View on GitHub
GitHub Stars3.7k
CategoryDevelopment
Updated4d ago
Forks473

Languages

JavaScript

Security Score

100/100

Audited on Apr 1, 2026

No findings