
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@einride/prettier-config
Advanced tools
Einride's default Prettier config
Install @einride/prettier-config
as a dev dependency:
yarn add @einride/prettier-config --dev
Make sure Prettier is also installed in your project.
Add @einride/prettier-config
to your .prettierrc.js
file:
module.exports = {
...require("@einride/prettier-config"),
}
Specific settings can be overridden by adding them after @einride/prettier-config
:
module.exports = {
...require("@einride/prettier-config"),
semi: true,
}
Add a formatting scripts to the scripts
section of your package.json
:
{
"scripts": {
"format": "prettier --write .",
"format-check": "prettier --check ."
}
}
Running yarn format
will format all your files according to the config specified in
.prettierrc.js
.
Running yarn format-check
will return exit code 1 when there are formatting issues, which makes it
a good fit for CI.
Add a .prettierignore
file to ignore files from being formatted:
src/gen # ignores files in src/gen directory from being formatted
node_modules
is ignored by default.
See Contributing Guide.
MIT
FAQs
Einride's default Prettier config
We found that @einride/prettier-config 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.