{"id":20361,"library":"prettier-plugin-esjs","title":"Prettier EsJS Plugin","description":"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.","status":"active","version":"0.1.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","typescript"],"install":[{"cmd":"npm install prettier-plugin-esjs","lang":"bash","label":"npm"},{"cmd":"yarn add prettier-plugin-esjs","lang":"bash","label":"yarn"},{"cmd":"pnpm add prettier-plugin-esjs","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency: required to run the plugin","package":"prettier","optional":false}],"imports":[{"note":"The plugin must be added as a string in the Prettier config plugins array. Direct import is not supported.","wrong":"import prettierPluginEsjs from 'prettier-plugin-esjs'","symbol":"default","correct":"module.exports = { plugins: ['prettier-plugin-esjs'] }"}],"quickstart":{"code":"// .prettierrc.js\nmodule.exports = {\n  plugins: ['prettier-plugin-esjs'],\n};\n\n// Usage: npx prettier --write ./src/*.esjs","lang":"javascript","description":"Configures Prettier to use the EsJS plugin and formats .esjs files."},"warnings":[{"fix":"Upgrade Prettier to ^3.0.0.","message":"Plugin requires Prettier v3; does not work with v2.","severity":"gotcha","affected_versions":"<=0.1.0"},{"fix":"Ensure files have .esjs extension or configure Prettier overrides.","message":"The plugin only formats EsJS files; standard .js or .ts files are unaffected.","severity":"gotcha","affected_versions":"*"},{"fix":"N/A","message":"No deprecated features noted in current version.","severity":"deprecated","affected_versions":"0.1.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Install the plugin: npm install -D prettier-plugin-esjs","cause":"Plugin not installed or not in node_modules.","error":"Error: Cannot find module 'prettier-plugin-esjs'"},{"fix":"Add the plugin to .prettierrc: { \"plugins\": [\"prettier-plugin-esjs\"] }","cause":"Prettier config file not properly configured or cached.","error":"Error: [prettier] Couldn't resolve plugin for name \"prettier-plugin-esjs\""}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}