Prettier plugin for formatting XQuery files. Current stable version is 1.6.1. Released irregularly as needed. Uses the standard Prettier plugin API, supports XQuery dialects (Exist DB, XQuery Update Facility 3.0) and works with common Prettier options like printWidth, tabWidth, singleQuote, useTabs. Provides a demo page and TypeScript type definitions. Alternative to manual code formatting/indentation in XQuery.
npm install prettier-plugin-xqueryNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install plugin and format XQuery files. Shows CLI usage and basic config with type definitions.
Add 'prettier-plugin-xquery' to the plugins array in .prettierrc or pass --plugin=prettier-plugin-xquery.
Use glob '**/*.xq*' to cover common extensions.
Use prettier >=2.0 and ensure plugin is updated; check plugin's peerDependencies.
npm install --save-dev prettier-plugin-xquery
Check spelling and ensure it's listed under 'plugins' in .prettierrc.