
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Makes eslint the fastest linter on the planet.
Yes, it's actually super fast. But the node.js startup time and loading all the
required modules slows down linting times for a single file to ~700
milliseconds. eslint_d
reduces this overhead by running a server in the
background. It brings the linting time down to ~160 milliseconds. If you want
to lint from within your editor whenever you save a file, eslint_d
is for
you.
This will install the eslint_d
command globally:
$ npm install -g eslint_d
To start the server and lint a file, just run:
$ eslint_d lint file.js
On the initial call, the eslint_d
server is launched and then the given file
is linted. Subsequent invocations are super fast.
Controll the server like this:
$ eslint_d <command>
Available commands:
start
: start the serverstop
: stop the serverstatus
: print out whether the server is currently runningrestart
: restart the server[options] file.js [file.js] [dir]
: invoke eslint
with the given options.
The eslint
engine will be created in the current directory. If the server
is not yet running, it is started.Type eslint_d --help
to see the supported eslint
options.
eslint_d
will select a free port automatically and store the port number is
~/.eslint_d_port
.
plugins/eslint_d.vim
and save it in ~/.vim/bundle/syntastic/syntax_checkers/javascript/
. Then
make sure this is in your .vimrc
:let g:syntastic_javascript_checkers = ['eslint_d']
If you're using eslint_d
in any other editor, please tell me!
If you're really into performance and want the lowest possible latency, talk to
the eslint_d
server with netcat. This will also eliminate the node.js startup
time.
$ echo '. file.js' | nc localhost `cat ~/.eslint_d_port`
This runs eslint
in under 50ms
!
1.0.0
, 2.0.0
: eslint 1.4+MIT
FAQs
Speed up eslint to accelerate your development workflow
The npm package eslint_d receives a total of 22,675 weekly downloads. As such, eslint_d popularity was classified as popular.
We found that eslint_d demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.