Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
eslint-formatter-fix-dry-run
Advanced tools
Readme
Custom eslint formatter whose only output is file content after running fixes.
This formatter is intended for use with eslint's --fix-dry-run
flag which
emits fixed file content in the command output instead of modifying files in
place.
If you run eslint on a file that it is configured to ignore then this formatter will produce no output.
This formatter works best when eslint is applied to one file at a time. If you
fix multiple files at a time then file contents in stdout
will be separated by
null characters (\0
).
Install with,
$ yarn add --dev eslint-formatter-fix-dry-run
Running eslint --fix
is ever so handy. You can use that command to apply
formatting with prettier if you have the prettier plugin set up, and to fix
other problems at the same time.
But sometimes you don't want to modify files in place. For example if you want
to use git-format-staged to fix files in a pre-commit hook it's important
that the eslint command sends fixed file content to stdout
. Eslint has
a --fix-dry-run
option that almost does this, but you need to use a
custom formatter to read fixed output. The stock json
formatter works, but
to get fixed file content you need to pipe output to jq
or another program
that can parse JSON. That makes writing fixing scripts tricky if you don't want
to assume that users will have jq
installed.
Eslint-formatter-fix-dry-run outputs fixed file content to stdout
, and nothing
else, so you don't need any extra processing.
FAQs
Outputs fixed file content to stdout; for use with --fix-dry-run
The npm package eslint-formatter-fix-dry-run receives a total of 10 weekly downloads. As such, eslint-formatter-fix-dry-run popularity was classified as not popular.
We found that eslint-formatter-fix-dry-run 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.