
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.
@twostoryrobot/prettier-config
Advanced tools
Get pretty code with prettier the way Two Story Robot likes it.
npm install --save-dev @twostoryrobot/prettier-config
Then you can source the config from your own prettier.config.js
.
module.exports = require('@twostoryrobot/prettier-config')
Or if you want to override the default at all (Note: please consider making a PR if you think the override will be useful for other projects).
const prettierConfig = require('@twostoryrobot/prettier-config')
module.exports = Object.assign({}, prettierConfig, { semi: true })
Make sure to install the peer dependencies
npm install --save-dev prettier
Now you can add a script to your project's package.json that calls prettier and it will reference the config file in the root of your project directory.
"scripts": {
"prettier": "prettier --write '**/*.js'"
}
If you install husky you can invoke prettier as a hook for various actions (precommit, prepush, etc)
"husky": {
"hooks": {
"pre-commit": "prettier --list-different '**/*.js'"
}
}
}
FAQs
Prettier configuration for Two Story Robot
We found that @twostoryrobot/prettier-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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
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.