
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@studiohyperdrive/prettier-config
Advanced tools
$ npm install --save-dev @studiohyperdrive/prettier-config
Then, add a prettier.config.js-file where you include "@studiohyperdrive/prettier-config".
module.exports = require("@studiohyperdrive/prettier-config");
If you would like to add local overrides to the configuration:
module.exports = Object.assign(
require("@studiohyperdrive/prettier-config"),
{
//add overrides here
singleQuote: true,
bracketSpacing: true,
...
}
);
We follow the guidelines defined by Prettier here: Use ESLint to run Prettier.
You need to install the following packages to integrate Pretter with Eslint:
$ npm install --save-dev prettier eslint-plugin-prettier eslint-config-prettier
In your Eslint configuration file, extend "plugin:prettier/recommended" before your other rulesets.
extends: [
"plugin:prettier/recommended",
"@studiohyperdrive/eslint-config",
"@studiohyperdrive/eslint-config/lib/es6.js",
]
When setting up your npm-scripts, you could add an extra format-script that runs Eslint with an extra --fix parameter.
"lint": "eslint . --ext js",
"format": "npm run lint -- --fix",
By default, you don't need an editor-specific package/extension/plugin to run Prettier, just use the npm scripts provided in the project.
If you would like to run the formatter to run automatically "on save", you could use the following guides:
You don't need an additional Visual Studio Code extension to run Prettier, you can just enable autoFixOnSave from the vscode-eslint extension.
"eslint.autoFixOnSave": true
FAQs
Studio Hyperdrive Prettier formatting rules
We found that @studiohyperdrive/prettier-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.