diff --git a/ember-lottie/package.json b/ember-lottie/package.json index 9cbd5995..d6fdcf4b 100644 --- a/ember-lottie/package.json +++ b/ember-lottie/package.json @@ -68,7 +68,7 @@ "eslint-plugin-ember": "^11.11.1", "eslint-plugin-node": "^11.1.0", "eslint-plugin-prettier": "^5.0.1", - "prettier": "^2.5.1", + "prettier": "^3.0.3", "rollup": "3.23.0", "rollup-plugin-copy": "3.4.0", "typescript": "5.2.2" diff --git a/ember-lottie/src/components/lottie.ts b/ember-lottie/src/components/lottie.ts index 2ed41fc1..de680e5a 100644 --- a/ember-lottie/src/components/lottie.ts +++ b/ember-lottie/src/components/lottie.ts @@ -115,7 +115,7 @@ export default class LottieComponent extends Component { this.mediaQuery?.addEventListener( 'change', - this.handleReducedMotionPreferenceChange + this.handleReducedMotionPreferenceChange, ); } @@ -124,7 +124,7 @@ export default class LottieComponent extends Component { this.mediaQuery?.removeEventListener( 'change', - this.handleReducedMotionPreferenceChange + this.handleReducedMotionPreferenceChange, ); if (this.animation) { diff --git a/ember-lottie/src/unpublished-development-types/index.d.ts b/ember-lottie/src/unpublished-development-types/index.d.ts index da9af98c..7f13e3a7 100644 --- a/ember-lottie/src/unpublished-development-types/index.d.ts +++ b/ember-lottie/src/unpublished-development-types/index.d.ts @@ -9,7 +9,7 @@ import 'ember-source/types'; import 'ember-source/types/preview'; declare class RenderModifier< - Args extends Array = Array + Args extends Array = Array, > extends Modifier<{ Element: HTMLElement; Args: { Positional: [(element: HTMLElement, args: Args) => void, ...Args] }; diff --git a/package.json b/package.json index dd2178a3..7e451be5 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "@release-it-plugins/lerna-changelog": "^5.0.0", "@release-it-plugins/workspaces": "^3.2.0", "concurrently": "^7.2.1", - "prettier": "^2.5.1", + "prettier": "^3.0.3", "release-it": "^15.11.0" }, "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e1b79a42..f1057ee6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,8 +18,8 @@ importers: specifier: ^7.2.1 version: 7.6.0 prettier: - specifier: ^2.5.1 - version: 2.8.7 + specifier: ^3.0.3 + version: 3.0.3 release-it: specifier: ^15.11.0 version: 15.11.0 @@ -116,10 +116,10 @@ importers: version: 11.1.0(eslint@8.51.0) eslint-plugin-prettier: specifier: ^5.0.1 - version: 5.0.1(eslint-config-prettier@9.0.0)(eslint@8.51.0)(prettier@2.8.7) + version: 5.0.1(eslint-config-prettier@9.0.0)(eslint@8.51.0)(prettier@3.0.3) prettier: - specifier: ^2.5.1 - version: 2.8.7 + specifier: ^3.0.3 + version: 3.0.3 rollup: specifier: 3.23.0 version: 3.23.0 @@ -278,7 +278,7 @@ importers: version: 16.2.0(eslint@8.51.0) eslint-plugin-prettier: specifier: ^5.0.1 - version: 5.0.1(eslint-config-prettier@9.0.0)(eslint@8.51.0)(prettier@2.8.7) + version: 5.0.1(eslint-config-prettier@9.0.0)(eslint@8.51.0)(prettier@3.0.3) eslint-plugin-qunit: specifier: ^8.0.1 version: 8.0.1(eslint@8.51.0) @@ -286,8 +286,8 @@ importers: specifier: ^4.7.0 version: 4.7.0 prettier: - specifier: ^2.8.4 - version: 2.8.7 + specifier: ^3.0.3 + version: 3.0.3 qunit: specifier: ^2.19.4 version: 2.19.4 @@ -8028,7 +8028,7 @@ packages: semver: 6.3.0 dev: true - /eslint-plugin-prettier@5.0.1(eslint-config-prettier@9.0.0)(eslint@8.51.0)(prettier@2.8.7): + /eslint-plugin-prettier@5.0.1(eslint-config-prettier@9.0.0)(eslint@8.51.0)(prettier@3.0.3): resolution: {integrity: sha512-m3u5RnR56asrwV/lDC4GHorlW75DsFfmUcjfCYylTUs85dBRnB7VM6xG8eCMJdeDRnppzmxZVf1GEPJvl1JmNg==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -8044,7 +8044,7 @@ packages: dependencies: eslint: 8.51.0 eslint-config-prettier: 9.0.0(eslint@8.51.0) - prettier: 2.8.7 + prettier: 3.0.3 prettier-linter-helpers: 1.0.0 synckit: 0.8.5 dev: true @@ -12256,6 +12256,12 @@ packages: engines: {node: '>=10.13.0'} hasBin: true + /prettier@3.0.3: + resolution: {integrity: sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==} + engines: {node: '>=14'} + hasBin: true + dev: true + /pretty-ms@3.2.0: resolution: {integrity: sha512-ZypexbfVUGTFxb0v+m1bUyy92DHe5SyYlnyY0msyms5zd3RwyvNgyxZZsXXgoyzlxjx5MiqtXUdhUfvQbe0A2Q==} engines: {node: '>=4'} diff --git a/test-app/package.json b/test-app/package.json index 76c2de6c..b99097c0 100644 --- a/test-app/package.json +++ b/test-app/package.json @@ -76,7 +76,7 @@ "eslint-plugin-prettier": "^5.0.1", "eslint-plugin-qunit": "^8.0.1", "loader.js": "^4.7.0", - "prettier": "^2.8.4", + "prettier": "^3.0.3", "qunit": "^2.19.4", "qunit-dom": "^2.0.0", "release-it": "^15.11.0", diff --git a/test-app/tests/integration/components/lottie-test.ts b/test-app/tests/integration/components/lottie-test.ts index 08310d81..b88f2752 100644 --- a/test-app/tests/integration/components/lottie-test.ts +++ b/test-app/tests/integration/components/lottie-test.ts @@ -91,7 +91,7 @@ module('Integration | Component | lottie', function (hooks) { assert.true(removeEventListener.calledOnce); }); - test('it should not autoplay the animation when prefers-reduced-motion is enabled', async function (this: TestContext, assert: any) { + test('it should not autoplay the animation when prefers-reduced-motion is enabled', async function (this: TestContext, assert) { window.matchMedia = () => { return { addEventListener: () => { @@ -115,7 +115,7 @@ module('Integration | Component | lottie', function (hooks) { assert.dom('[data-test-autoplay=false]').exists(); }); - test('it should not autoplay the animation when autoplay is false', async function (this: TestContext, assert: any) { + test('it should not autoplay the animation when autoplay is false', async function (this: TestContext, assert) { window.matchMedia = () => { return { addEventListener: () => { @@ -139,7 +139,7 @@ module('Integration | Component | lottie', function (hooks) { assert.dom('[data-test-autoplay=false]').exists(); }); - test('it should autoplay the animation when prefers-reduced-motion is disabled', async function (this: TestContext, assert: any) { + test('it should autoplay the animation when prefers-reduced-motion is disabled', async function (this: TestContext, assert) { window.matchMedia = () => { return { addEventListener: () => { @@ -163,7 +163,7 @@ module('Integration | Component | lottie', function (hooks) { assert.dom('[data-test-autoplay=true]').exists(); }); - test('it should autoplay the animation by default when prefers-reduced-motion is disabled', async function (this: TestContext, assert: any) { + test('it should autoplay the animation by default when prefers-reduced-motion is disabled', async function (this: TestContext, assert) { window.matchMedia = () => { return { addEventListener: () => { @@ -186,7 +186,7 @@ module('Integration | Component | lottie', function (hooks) { assert.dom('[data-test-autoplay=true]').exists(); }); - test('it should not call document.querySelector when containerId is undefined or null', async function (this: TestContext, assert: any) { + test('it should not call document.querySelector when containerId is undefined or null', async function (this: TestContext, assert) { const querySelector = sinon.spy(); document.querySelector = querySelector; await render(hbs` @@ -207,7 +207,7 @@ module('Integration | Component | lottie', function (hooks) { assert.false(querySelector.calledOnce); }); - test('it should call document.querySelector when containerId is not falsy', async function (this: TestContext, assert: any) { + test('it should call document.querySelector when containerId is not falsy', async function (this: TestContext, assert) { const querySelector = sinon.spy(); document.querySelector = querySelector; await render(hbs`