{"library":"prettier-plugin-ember-template-tag","title":"Prettier Plugin Ember Template Tag","description":"A Prettier plugin for formatting Ember template tags in .gjs and .gts files, currently at version 2.1.5. It requires Prettier >= 3.0.0 and Node 18+ or 20+. The plugin integrates Prettier's babel-ts parser for the script portion and the glimmer parser for template content, providing seamless formatting for Ember's first-class component templates. Unlike alternative approaches (e.g., using eslint-plugin-ember), this plugin is the recommended official solution for formatting GJS/GTS files. Releases follow a patch/minor cadence with active maintenance from the Ember Tooling team. Notable recent changes include dual CJS/ESM output since v2.1.0, and fix for comment formatting crash in v2.1.4.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-ember-template-tag"],"cli":null},"imports":["const prettierPluginEmberTemplateTag = require('prettier-plugin-ember-template-tag')","import p from 'prettier-plugin-ember-template-tag'","plugins: ['prettier-plugin-ember-template-tag']"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// .prettierrc.js\nmodule.exports = {\n  plugins: ['prettier-plugin-ember-template-tag'],\n  overrides: [\n    {\n      files: '*.{js,ts,gjs,gts}',\n      options: {\n        singleQuote: true,\n        trailingComma: 'all',\n      },\n    },\n  ],\n};\n\n// Then run:\n// prettier --write . (Prettier >= 3.1)\n// prettier --write . --plugin prettier-plugin-ember-template-tag (Prettier < 3.1)","lang":"javascript","description":"Shows how to configure Prettier with the plugin for .gjs/.gts files, including overrides for single quotes and trailing commas.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}