
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
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
passlint **/*.js && echo 'no errors was found'
passlint **/*.js
components/mics.js:245:7: Unexpected token
js/admin-controller.js:2:1: Unexpected token
var passlint = require( 'passlint' )
var defaultEcmaVersion = 6 // 2015
var errline = passlint( 'test/output.js', defaultEcmaVersion )
if ( errline ) console.error( errline )
test/output.js:484:40: ParseError: Unexpected token
$ passlint --help
Usage: passlint [optinos]
Arguments:
--ecma-version, -e <number> specify ecma version to check against
defaults to 6 ( 2015 )
example: `passlint -e 6 src/**`
--version, -V print version and exit
--help, -h help ( this text )
locally ( project specific, for use with npm scripts )
npm install passlint
globally
npm install -g passlint
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.
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 formats the output more concisely.
node -c **/*.js
npm test
FAQs
Lint only serious errors that will definitely break your code, probably.
The npm package passlint receives a total of 13 weekly downloads. As such, passlint popularity was classified as not popular.
We found that passlint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.