Socket
Book a DemoInstallSign in
Socket

@amedia/prettier-config

Package Overview
Dependencies
Maintainers
88
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amedia/prettier-config

Prettier config for Amedia

latest
npmnpm
Version
2.1.1
Version published
Maintainers
88
Created
Source

@amedia/prettier-config

The Prettier configuration for JavaScript / YAML / JSON / Markdown.

This probes for features and loads plugins when necessary.

Usage

Note that from kragl v4 onwards, only esm config files and syntax are supported.

npm install --save-dev @amedia/prettier-config prettier

After installing the deps, update your Prettier config file, e.g. prettier.config.js:

export { default } from '@amedia/prettier-config';

Gotchas

VS Code prettier plugin

The prettier pluggin for vscode esbenp.prettier-vscode, uses its included version of prettier as default. If this version uses CommonJS (require syntax) instead of ESModule (export syntax), prettier will fail with an error like:

require() of ES Module [...] not supported

To fix this issue, set the path to the prettier instance for VS code, to point to the prettier package in the current VS code repo:

"prettier.prettierPath": "./node_modules/prettier",

FAQs

Package last updated on 14 Aug 2025

Did you know?

Socket

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.

Install

Related posts