Registry / devops / prettier-plugin-esjs

prettier-plugin-esjs

JSON →
library0.1.0jsnpmunverified

A Prettier plugin for formatting EsJS code, a Spanish-translated JavaScript dialect. Stable version 0.1.0. It integrates with Prettier 3.x as a plugin, leveraging Prettier's parsing and formatting pipeline. Key differentiator: enables Prettier to format .esjs files natively, supporting EsJS syntax such as keywords in Spanish. Currently in early development with basic formatting support.

npm install prettier-plugin-esjs
INSTALL
IMPORT
SIG · PRETTIER-PLUGIN-ES
P
prettier-plugin-esjs
devopsjavascriptv0.1.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
module.exports = { plugins: ['prettier-plugin-esjs'] }
import prettierPluginEsjs from 'prettier-plugin-esjs'
The plugin must be added as a string in the Prettier config plugins array. Direct import is not supported.

Configures Prettier to use the EsJS plugin and formats .esjs files.

// .prettierrc.js module.exports = { plugins: ['prettier-plugin-esjs'], }; // Usage: npx prettier --write ./src/*.esjs
prettier --version
Debug
Known issues
gotchaPlugin requires Prettier v3; does not work with v2.
fix
Upgrade Prettier to ^3.0.0.
affects: <=0.1.0
gotchaThe plugin only formats EsJS files; standard .js or .ts files are unaffected.
fix
Ensure files have .esjs extension or configure Prettier overrides.
affects: *
deprecatedNo deprecated features noted in current version.
fix
N/A
affects: 0.1.0
Errors
Common errors & fixes
Error: Cannot find module 'prettier-plugin-esjs'
Plugin not installed or not in node_modules.
fix
Install the plugin: npm install -D prettier-plugin-esjs
Error: [prettier] Couldn't resolve plugin for name "prettier-plugin-esjs"
Prettier config file not properly configured or cached.
fix
Add the plugin to .prettierrc: { "plugins": ["prettier-plugin-esjs"] }
Upgrade
Version history
0.1.0latest on npm
Audit
Dependencies
prettierrequiredpeer dependency: required to run the plugin
Agent activity
4 hits · last 30 days
node
4
Resources
prettier-plugin-esjs — npm install prettier-plugin-esjs · libregistry