Skip to content
This repository has been archived by the owner on May 16, 2020. It is now read-only.
/ jslint-cli Public archive

Run syntax and style checker JSLint from a CLI

License

Notifications You must be signed in to change notification settings

Koekelas/jslint-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSLint CLI

Run syntax and style checker JSLint from a CLI.

Getting started

To install jslint-cli, run:

git clone https://github.com/Koekelas/jslint-cli.git
cd jslint-cli/
npm i -g

To verify installation, run:

echo "const x = 42" | jslint-cli

This outputs:

1,13 Expected ';' and instead saw '(end)'.

Linting a file

jslint-cli is meant to be used with Flycheck. As a consequence, it only reads from standard input.

To lint a file, run:

jslint-cli < file.js

Updating JSLint

Delete ~/.jslint-cli/jslint.js. jslint-cli will download JSLint on next run.

Flycheck extension

Add this directory to your load path, then require flycheck-jslint.

About

Run syntax and style checker JSLint from a CLI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published