From 375afa073bddfa686706046b5eaf3748eb95e77f Mon Sep 17 00:00:00 2001 From: Chris Manson Date: Tue, 8 Aug 2023 18:13:41 +0100 Subject: [PATCH] add prettier-plugin-ember-template-tag --- files/.prettierrc.js | 1 + files/__addonLocation__/.prettierrc.cjs | 1 + files/__addonLocation__/package.json | 1 + files/package.json | 3 ++- tests/fixtures/default/.prettierrc.js | 1 + 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/files/.prettierrc.js b/files/.prettierrc.js index 534e6d35..d6a52956 100644 --- a/files/.prettierrc.js +++ b/files/.prettierrc.js @@ -1,5 +1,6 @@ 'use strict'; module.exports = { + plugins: ['prettier-plugin-ember-template-tag'], singleQuote: true, }; diff --git a/files/__addonLocation__/.prettierrc.cjs b/files/__addonLocation__/.prettierrc.cjs index 534e6d35..d6a52956 100644 --- a/files/__addonLocation__/.prettierrc.cjs +++ b/files/__addonLocation__/.prettierrc.cjs @@ -1,5 +1,6 @@ 'use strict'; module.exports = { + plugins: ['prettier-plugin-ember-template-tag'], singleQuote: true, }; diff --git a/files/__addonLocation__/package.json b/files/__addonLocation__/package.json index e9434d2d..b6ddfa14 100644 --- a/files/__addonLocation__/package.json +++ b/files/__addonLocation__/package.json @@ -77,6 +77,7 @@ "eslint-plugin-n": "^16.0.0", "eslint-plugin-prettier": "^4.0.0", "prettier": "^2.5.1", + "prettier-plugin-ember-template-tag": "^1.0.0", "rollup": "^3.21.8"<% if (!isExistingMonorepo) { %>, "rollup-plugin-copy": "^3.4.0"<% } %><% if (typescript) { %>, "typescript": "^5.0.4"<% } %> diff --git a/files/package.json b/files/package.json index 3e8a6d90..0d55002e 100644 --- a/files/package.json +++ b/files/package.json @@ -8,7 +8,8 @@ "scripts": {}, "devDependencies": { "concurrently": "^7.2.1", - "prettier": "^2.5.1" + "prettier": "^2.5.1", + "prettier-plugin-ember-template-tag": "^1.0.0" }, "workspaces": [ "<%= addonInfo.location %>", diff --git a/tests/fixtures/default/.prettierrc.js b/tests/fixtures/default/.prettierrc.js index 534e6d35..d6a52956 100644 --- a/tests/fixtures/default/.prettierrc.js +++ b/tests/fixtures/default/.prettierrc.js @@ -1,5 +1,6 @@ 'use strict'; module.exports = { + plugins: ['prettier-plugin-ember-template-tag'], singleQuote: true, };