Registry / devops / prettier-plugin-ux

prettier-plugin-ux

JSON →
library0.3.0jsnpmunverified

Prettier plugin for formatting QuickApp (.ux) files, version 0.3.0. It integrates with Prettier to provide a universal interface for code formatting, supporting JS, CSS, Less, Sass, and Markdown within QuickApp projects. The plugin is specifically designed for the QuickApp platform (快应用), offering a common style guide for teams and helping identify potential code issues. It requires Prettier as a peer dependency and is compatible with Node.js >= 8.0.0. The plugin is maintained by nicejade and has a low release cadence with limited community adoption.

npm install prettier-plugin-ux
INSTALL
IMPORT
SIG · PRETTIER-PLUGIN-UX
P
prettier-plugin-ux
devopsjavascriptv0.3.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
const prettier = require('prettier'); require('prettier-plugin-ux');
import prettier from 'prettier';
Plugin is auto-loaded by Prettier when installed; no direct import needed. For ESM, use dynamic import or rely on Prettier's plugin resolution.

Installation and basic usage of prettier-plugin-ux to format QuickApp files.

// Install yarn add --dev --exact prettier prettier-plugin-ux // Format all .ux files npx prettier --write "**/*.ux" // In package.json scripts "prettier": "prettier --write 'src/**/*.js' 'src/**/*.ux'" // Optional: watch with onchange "prettier-watch": "onchange '**/*.md' 'src/**/*.js' 'src/**/*.ux' -- prettier --write {{changed}}"
Debug
Known issues
gotchaPlugin requires Prettier to be installed separately.
fix
Install prettier as a dev dependency: yarn add --dev prettier
affects: >=0.1
gotchaThe plugin is auto-discovered by Prettier when installed in the same project. No manual configuration is needed.
fix
Simply install the plugin alongside Prettier.
affects: >=0.1
gotchaOnly supports .ux files; other file types are ignored.
fix
Ensure file extension is .ux when running prettier.
affects: >=0.1
deprecatedNode.js >= 8.0.0 required; older versions are not supported.
fix
Upgrade Node.js to version 8.0.0 or higher.
affects: >=0.1
Errors
Common errors & fixes
Cannot find module 'prettier'
Prettier is not installed.
fix
Run: yarn add --dev prettier
No parser could be inferred for file: example.ux
Plugin not installed or not detected by Prettier.
fix
Ensure prettier-plugin-ux is installed in the same project as prettier.
Error: Invalid configuration file: prettier
Prettier options used incorrectly in package.json.
fix
Place prettier configuration under a "prettier" key in package.json (e.g., { "prettier": { "singleQuote": true } })
Upgrade
Version history
0.3.0latest on npm
Audit
Dependencies
prettierrequiredpeer dependency required for formatting logic
Agent activity
22 hits · last 30 days
node
18
OpenAI (training)
2
Resources
prettier-plugin-ux — npm install prettier-plugin-ux · libregistry