
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
@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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.