{"library":"prettier-plugin-elm","title":"prettier-plugin-elm","description":"Adds Elm language support to Prettier by wrapping elm-format. Version 0.12.0 (2025-09-21) requires Node >=18.20.6 and uses elm-format 0.8.8. Works with Prettier v2 (global) or v3 (local with explicit plugin config). Formats .elm files and Elm code blocks inside Markdown documents, with support for <!-- prettier-ignore -->. Key differentiators: integrates elm-format directly into the Prettier ecosystem, handles both standalone files and embedded code blocks. Vendors elm-format internally, reducing version conflicts. Designed for Elm 0.19; older plugin versions support Elm 0.18. Maintained by giCentre, with TypeScript source code.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-elm"],"cli":null},"imports":["const prettierPluginElm = require('prettier-plugin-elm');","{\n  \"plugins\": [\"prettier-plugin-elm\"]\n}","prettier --write '**/*.elm'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// Install Prettier v2 globally and the plugin\n// npm install --global prettier@2 prettier-plugin-elm\n//\n// Now format an Elm file:\n// prettier --write Main.elm\n\n// Or for local project with Prettier v3:\n// npm install --save-dev prettier prettier-plugin-elm\n// Then in .prettierrc:\n{\n  \"plugins\": [\"prettier-plugin-elm\"]\n}\n// Run: npx prettier --write src/**/*.elm","lang":"typescript","description":"Global installation with Prettier v2 and formatting a single file; also shows local config for Prettier v3.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}