Firefox 浏览器附加组件
  • 扩展
  • 主题
    • 适用于 Firefox
    • 字典和语言包
登录
codefmt: code formatter and linter 预览

codefmt: code formatter and linter 作者: codefmt

format and lint javascript, python, and hubl in zapier, n8n, pipedream, make, and hubspot editors. powered by biome and ruff.

可在 Android™ 版 Firefox 上使用可在 Android™ 版 Firefox 上使用
0(0 条评价)0(0 条评价)
1 个用户1 个用户
下载 Firefox 并安装扩展
下载文件
扫码在 Android 版 Firefox 中打开此扩展

扩展元数据

屏幕截图
Format and lint your code right in the platform's own editor. No copy and paste.Messy JavaScript in, consistently formatted code out.Format from the toolbar popup, the right-click menu, or Ctrl+Shift+F.Catch HubL mistakes, deprecated tags, and filter misuse before you publish.No accounts, no cookies, no tracking. Your code is sent to codefmt.dev to be formatted and is never stored.
关于此扩展
format and lint javascript, python, and hubl right inside your automation platform's code editor. powered by biome and ruff.

DESCRIPTION:

Format and lint your code directly inside automation platform editors. No copy-paste to VS Code or any other editor required.

Supported platforms:
  • Zapier (Code by Zapier action: JavaScript and Python)
  • n8n (Code nodes: JavaScript and Python, on n8n.io, n8n.cloud, or your own self-hosted server)
  • Pipedream (Code steps: JavaScript and Python)
  • Make (Code app modules: JavaScript and Python)
  • HubSpot Data Hub (custom code actions: JavaScript and Python)
  • HubSpot CMS / Design Manager (HubL templates with HTML and CSS contexts, plus module.js)

How it works:
  • Open a code editor on any supported platform.
  • Use any of three ways to format:
    • Click the codefmt icon in your browser toolbar, then press "format code". Lint findings are listed right in the popup, up to 8 at a time.
    • Right-click and select "Format with codefmt" (format only) or "Fix with codefmt" (format plus safe lint fixes plus organize imports).
    • Press Ctrl+Shift+F while your cursor is in the code editor. Same combo on Mac.
  • Your code is formatted and written back to the editor.
  • A notification appears at the editor with the top 3 lint findings, each showing its line, rule, and message, errors first. Hover it to keep it open, click it or press Esc to dismiss.

Features:
  • Platform-aware formatting that understands each platform's code structure (async wrappers, globals, return styles, line-width conventions)
  • Auto-detects JavaScript, Python, and HubL (including HTML, CSS, and JavaScript contexts inside HubSpot Design Manager)
  • Lint diagnostics powered by oxlint for JavaScript and Ruff for Python, both Rust tools built for speed
  • JavaScript formatting powered by Biome, with Prettier-compatible output
  • Python formatting and linting powered by Ruff
  • HubL formatting and linting via a custom formatter built for HubSpot CMS templates
  • "Fix with codefmt" right-click action that applies safe Biome lint fixes and organize-imports in one pass
  • Configurable formatting: print width, quote style, semicolons, trailing commas, bracket spacing, arrow parens, JSX quote style, quote properties, bracket same line, and organize imports
  • Sync settings from codefmt.dev with one click. Configure on the web, use in the extension. Settings are kept per platform.
  • Keyboard shortcut: Ctrl+Shift+F, active while your cursor sits in the code editor
  • Self-hosted n8n: add your server's address in the popup and Firefox asks whether to grant access to that one address. Addresses are matched exactly, and removing one revokes the access with it.
  • Light and dark theme, following your system by default
  • Per-tab badge shows "fmt" on supported sites so you know the extension is live
  • If Firefox's site access for the extension is off or gets revoked, the popup detects it and offers a one-click fix, and the badge shows "!" instead, so a silent extension is never a mystery
  • Works with Monaco and CodeMirror 5 / 6 editors, the engines used by all supported platforms
  • 50 KB code size limit per format request
  • 25 second request timeout with automatic retry on transient network failures

Privacy and data handling:
  • No accounts, no cookies, no tracking
  • The format API keeps an anonymous count of requests: platform, language, and whether the format worked. The count holds no IP address, no identifier, and never your code.
  • Your IP address is held in memory for up to 60 seconds to enforce rate limits. It is written to a log line only if a request goes over the limit.
  • Your formatting preferences are stored locally in your browser only
  • When you trigger a format, the code currently in your editor is sent over HTTPS to codefmt.dev/api/format, formatted, and returned. JavaScript is also written to a temporary file so it can be linted, and that file is deleted before the response is sent. Your code is not written to a database, logged, or shared with third parties.
  • The extension only runs on the supported platform domains listed above, on a self-hosted n8n address you add yourself, and on codefmt.dev for the optional settings-sync feature
  • Full privacy policy: https://codefmt.dev/privacy

Security:
  • Manifest V3 with minimal permissions (activeTab, contextMenus, storage, scripting)
  • Only the supported platform domains, and a self-hosted n8n address you added, can trigger format requests
  • Every internal message is validated for sender identity and origin before any network call
  • Hardened content security policy on the extension pages
  • No remote code execution. All scripts are included in the extension package and are plain, human-readable JavaScript with no minification or build step.

Built on:
  • Biome (biomejs.dev): Rust-based, Prettier-compatible formatter that powers JavaScript output
  • oxlint (oxc.rs): a Rust-based JavaScript linter with a familiar rule set
  • Ruff (astral.sh/ruff): Rust-based Python formatter and linter used by major Python projects

Learn more:
  • Web formatter: https://codefmt.dev
  • About and support: https://codefmt.dev/about
  • Privacy policy: https://codefmt.dev/privacy

SCREENSHOTS:

Upload the five PNGs from store-assets/firefox/ in this order, replacing the ones on the listing, and paste the caption under each.
  1. codefmt-hero.png
    Format and lint your code right in the platform's own editor. No copy and paste.
  2. codefmt-before-after-screenshot.png
    Messy JavaScript in, consistently formatted code out.
  3. codefmt-triggers-screenshot.png
    Format from the toolbar popup, the right-click menu, or Ctrl+Shift+F.
  4. codefmt-hubl-screenshot.png
    Catch HubL mistakes, deprecated tags, and filter misuse before you publish.
  5. codefmt-sync-privacy-screenshot.png
    No accounts, no cookies, no tracking. Your code is sent to codefmt.dev to be formatted and is never stored.
评分 0(1 位用户)
登录以评价此扩展
目前尚无评分

已保存星级评分

5
0
4
0
3
0
2
0
1
0
尚无评价
权限与数据

必要权限:

  • 访问您用于 zapier.com 域名的网站的数据
  • 访问您用于 n8n.io 域名的网站的数据
  • 访问您用于 n8n.cloud 域名的网站的数据
  • 访问您用于 pipedream.com 域名的网站的数据
  • 访问您用于 hubspot.com 域名的网站的数据
  • 访问您用于 make.com 域名的网站的数据
  • 访问您在 zapier.com 的数据
  • 访问您在 n8n.io 的数据
  • 访问您在 n8n.cloud 的数据
  • 访问您在 pipedream.com 的数据
  • 访问您在 hubspot.com 的数据
  • 访问您在 make.com 的数据

可选权限:

  • 访问您用于 zapier.com 域名的网站的数据
  • 访问您用于 n8n.io 域名的网站的数据
  • 访问您用于 n8n.cloud 域名的网站的数据
  • 访问您用于 pipedream.com 域名的网站的数据
  • 访问您用于 hubspot.com 域名的网站的数据
  • 访问您用于 make.com 域名的网站的数据
  • 访问您在 zapier.com 的数据
  • 访问您在 n8n.io 的数据
  • 访问您在 n8n.cloud 的数据
  • 访问您在 pipedream.com 的数据
  • 访问您在 hubspot.com 的数据
  • 访问您在 make.com 的数据
  • 访问您在 codefmt.dev 的数据

根据开发者所述,必要的数据收集:

  • 网站内容
详细了解
更多信息
附加组件链接
  • 用户支持网站
  • 支持邮箱
  • 复制附加组件 ID
版本
1.7.0
大小
68.61 KB
上次更新
19 天前 (2026年11月11日)
相关分类
  • 网页开发
许可证
MIT 许可证
隐私政策
阅读此附加组件的隐私政策
版本历史
  • 查看所有版本
标签
  • dark mode
  • privacy
添加到收藏集
举报此附加组件
转至 Mozilla 主页

附加组件

  • 关于
  • Firefox 附加组件博客
  • 扩展工坊
  • 开发者中心
  • 开发者政策
  • 社区博客
  • 论坛
  • 报告缺陷
  • 评价指南

下载

  • Download Firefox
  • Windows
  • macOS
  • iOS
  • Android
  • Linux
  • All

最新版本

  • Nightly
  • Beta

商用版 Firefox

  • Enterprise

社区

  • Connect
  • Contribute
  • Developer

关注

  • Instagram
  • YouTube
  • TikTok
  • Bluesky
  • Podcast
  • 隐私
  • Cookie
  • 法律

本站内容以知识共享署名-相同方式共享 v3.0 或任何更新版本授权(除非另有注明)。Android 系 Google LLC 的商标。