
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@guildeducationinc/prettier-config
Advanced tools
At Guid, we uses prettier
to format our code javascript and typescript code in a standard way.
yarn add -D @guildeducationinc/prettier-config
Make sure that you have prettier installed in your project. To learn how to do this, refer to prettier docs.
To use the Guild prettier config, simply add the following to your package.json
.
{
"name": "my-project-name",
...
+ "prettier": "@guildeducationinc/prettier-config"
}
Next, run
yarn prettier --write "src/**/*.{ts,tsx,js,jsx}"
If you've just installed prettier, this runs prettier against the entire code base and formats it to match our standard config.
While optional, it's highly recommended to add a pre-commit hook so that prettier runs on all commits. This automates prettier and prevents any files from becoming out of sync with our formatting.
yarn add -D husky
yarn add -D lint-staged
Then, add to your package.json
{
"name": "my-project-name",
...
+ "husky": {
+ "hooks": {
+ "pre-commit": "lint-staged"
+ }
+ },
+ "lint-staged": {
+ "src/**/*.{js,jsx,ts,tsx}": [
+ "prettier --write src/**/*.{js,jsx,ts,tsx}",
+ "git add"
+ ]
+ }
}
Or, add a prettier.config.js
file in the root of your project with the following
module.exports = {
...require('@guildeducationinc/prettier-config'),
};
To ignore files, add a .prettierignore
to the root of your project and add any glob patterns of files you'd like for prettier to ignore.
FAQs
Guild Education's Prettier Config
The npm package @guildeducationinc/prettier-config receives a total of 1,242 weekly downloads. As such, @guildeducationinc/prettier-config popularity was classified as popular.
We found that @guildeducationinc/prettier-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 30 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.