@amedia/prettier-config
v2.2.0
Published
Prettier config for Amedia
Maintainers
Keywords
Readme
@amedia/prettier-config
Amedia's Prettier configuration. Default flavour covers
JavaScript / TypeScript / JSON / YAML / Markdown; a Svelte flavour adds
prettier-plugin-svelte.
Install
npm install --save-dev @amedia/prettier-config prettierUse
Default flavour:
// prettier.config.js
export { default } from '@amedia/prettier-config';Svelte flavour:
// prettier.config.js
export { svelte as default } from '@amedia/prettier-config';Notes
Requires Node 22+ and ESM ("type": "module" in package.json). For a plain
rule set without plugin loading, see
@amedia/prettier-config-base.
VS Code
The esbenp.prettier-vscode extension ships its own Prettier and may fail to
load this config with require() of ES Module ... not supported. Point the
extension at the project's Prettier instead:
// .vscode/settings.json
{
"prettier.prettierPath": "./node_modules/prettier"
}