🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

passlint

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

passlint

Lint only serious errors that will definitely break your code, probably.

Source
npmnpm
Version
0.0.13
Version published
Weekly downloads
13
18.18%
Maintainers
1
Weekly downloads
 
Created
Source

passlint

Quickly check syntax errors with acorn ( syntax-error ) - if this fails your code is definitely not going to work, probably.

Default ECMAScript version is 6 ( 2015 ) - change it with -e <number> argument variable

Easy to use

passlint **/*.js && echo 'no errors was found'

Sample output

passlint **/*.js
  components/mics.js:245:7: Unexpected token
  js/admin-controller.js:2:1: Unexpected token

Install

locally ( project specific, for use with npm scripts )

npm install passlint

globally

npm install -g passlint

Why

To quickly capture absolutely essential errors. Some projects have messy or no linting rules at all. Even with linting setup not everything gets fixed or gets forgotten.

passlint is the dirty final gate that needs to be passed for your code to run regardless of style rules.

Alternatives

You can use node's -c flag for similar functionality. Note the variablity between node versions, passlint tests against ES 2015 by default and also parses the output more concisely.

node -c **/*.js

How

acorn, syntax-error

Keywords

passlint

FAQs

Package last updated on 09 Nov 2017

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