New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jslint

Package Overview
Dependencies
Maintainers
3
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jslint

The JavaScript Code Quality Tool

  • 0.3.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
70K
increased by21.92%
Maintainers
3
Weekly downloads
 
Created
Source

node-jslint

Easily use JSLint from the command line.

jslint bin/jslint.js

What's New

Added latest jslint, 2014-02-06.

Version 0.3.1 of node-jslint supports globbing with * and ** expressions.

Versions 0.2+ of node-jslint provide multiple editions of jslint to address backwards and forwards compatibility.

Use the default jslint

jslint lib/color.js

Always use the latest jslint

jslint --edition=latest lib/color.js

Use a specific edition

For example, edition 2013-02-03 which shipped with node-jslint 0.1.9:

jslint --edition=2013-02-03 lib/color.js

Install

npm install jslint -g

Self-Lint

make lint

Usage examples

Multiple files

jslint lib/color.js lib/reporter.js

All JSLint options supported

jslint --white --vars --regexp lib/color.js

Defaults to true, but you can specify false

jslint --bitwise false lib/color.js

Pass arrays

jslint --predef $ --predef Backbone lib/color.js

JSLint your entire project

jslint '**/*.js'

Using JSLint with a config file

Start with the included jslintrc.example file and customize your options per project or copy it to $HOME/.jslintrc to apply your setting globally

License

See LICENSE file.

Keywords

FAQs

Package last updated on 08 May 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc