{"library":"prettier-plugin-groovy","title":"prettier-plugin-groovy","description":"A Prettier plugin to format Groovy files, including Jenkinsfiles. Version 0.2.1 requires Node >=20.0.0 || ^18.12.0 and Prettier ^3.3.3. It internally uses groovy-beautify for formatting. Key differentiator: integrates Groovy formatting into the Prettier ecosystem, enabling consistent code style with other languages.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-groovy"],"cli":null},"imports":["Add to Prettier config plugins array","\"plugins\": [\"prettier-plugin-groovy\"] in .prettierrc","prettier --write --plugin=prettier-plugin-groovy path/to/file.groovy"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// Install the plugin as a dev dependency\nnpm install prettier-plugin-groovy --save-dev\n\n// Add to .prettierrc (JSON format)\n{\n  \"plugins\": [\"prettier-plugin-groovy\"]\n}\n\n// Or use CLI with plugin flag\nprettier --write --plugin=prettier-plugin-groovy Jenkinsfile\n","lang":"javascript","description":"Installation and usage of prettier-plugin-groovy to format Groovy files (e.g., Jenkinsfile) via Prettier.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}