diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 8735790e3e..595f528bef 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -18,3 +18,8 @@ updates: # We are pinned to Tachometer 0.5.10 due to a breaking change in 0.6.0. # See: https://github.com/google/tachometer/issues/244 - dependency-name: 'tachometer' + # TODO [#4386]: Stop ignoring when we've done the upgrade ourselves + - dependency-name: 'prettier' + versions: '>= 3' + - dependency-name: '@types/prettier' + versions: '>= 3' diff --git a/.prettierrc b/.prettierrc index 581887eed8..edc17868b9 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,6 @@ { "printWidth": 100, "singleQuote": true, - "tabWidth": 4 + "tabWidth": 4, + "trailingComma": "es5" } diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures.spec.ts b/packages/@lwc/template-compiler/src/__tests__/fixtures.spec.ts index c75c5afb11..6bf5849a6d 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures.spec.ts +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures.spec.ts @@ -38,6 +38,7 @@ describe('fixtures', () => { ); return { + // TODO [#4386]: Prettier v3 returns a promise - add an `await` here 'expected.js': prettier.format(code, { parser: 'babel' }), 'ast.json': JSON.stringify({ root }, null, 4), 'metadata.json': JSON.stringify({ warnings }, null, 4), diff --git a/scripts/tasks/generate-license-files.js b/scripts/tasks/generate-license-files.js index 3cc0f1a604..e042d6769d 100644 --- a/scripts/tasks/generate-license-files.js +++ b/scripts/tasks/generate-license-files.js @@ -60,6 +60,7 @@ async function main() { '\n' )}`.trim() + '\n'; + // TODO [#4386]: Prettier v3 returns a promise - add an `await` here const formattedLicense = prettier.format(newLicense, { parser: 'markdown', });