Koekelas / jslint-cli

Run syntax and style checker JSLint from a CLI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:JavaScript 96.3%Language:Emacs Lisp 3.7%