Skip to content

Commit

Permalink
fix: eslint missing unsafe argument
Browse files Browse the repository at this point in the history
  • Loading branch information
cyl3x committed Jan 24, 2025
1 parent 23a1c07 commit 96dad08
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Resources/app/administration/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export default tseslint.config(
'@typescript-eslint/no-unsafe-call': 'error',
'@typescript-eslint/no-unsafe-assignment': 'error',
'@typescript-eslint/no-unsafe-return': 'error',
'@typescript-eslint/no-unsafe-argument': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/prefer-ts-expect-error': 'error',
'@typescript-eslint/no-floating-promises': 'off',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default Shopware.Component.wrapComponentConfig({
computed: {
disableActiveSwitch(): boolean {
// @ts-expect-error - paymentMethod is from extended component
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access -- paymentMethod is from extended component
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-argument -- paymentMethod is from extended component
return !this.acl.can('payment.editor') || this.needsOnboarding(this.paymentMethod.id);
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ async function createWrapper(customOptions = {}) {
};
return mount(
await Shopware.Component.build('swag-paypal-checkout-method') as typeof SwagPayPalCheckoutMethod,
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument -- mergeWith is not typed
Shopware.Utils.object.mergeWith(options, customOptions),
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ async function createWrapper(customOptions = {}) {

return mount(
await Shopware.Component.build('swag-paypal-cross-border') as typeof SwagPayPalCrossBorder,
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument -- mergeWith is not typed
Shopware.Utils.object.mergeWith(options, customOptions),
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ async function createWrapper(customOptions = {}) {

return mount(
await Shopware.Component.build('swag-paypal-vaulting') as typeof SwagPayPalVaulting,
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument -- mergeWith is not typed
Shopware.Utils.object.mergeWith(options, customOptions),
);
}
Expand Down

0 comments on commit 96dad08

Please sign in to comment.