From 47ad1ec18eacf682ab58dc2e7a90be4a2e34032c Mon Sep 17 00:00:00 2001 From: Sam Najian Date: Thu, 17 Feb 2022 10:59:29 +0100 Subject: [PATCH] Adjust eslint-ts for premium plugin to match the free one We have turned some checks off for free plugin which need to be added to the eslint config for the premium plugin since we are going to use the free plugin's files as type source for the premium plugin [MAILPOET-3140] --- eslint-config/.eslintrc-premium.ts.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eslint-config/.eslintrc-premium.ts.json b/eslint-config/.eslintrc-premium.ts.json index cada778a9a..f800346076 100644 --- a/eslint-config/.eslintrc-premium.ts.json +++ b/eslint-config/.eslintrc-premium.ts.json @@ -44,6 +44,10 @@ "comma-dangle": ["error", "always-multiline"], "no-only-tests/no-only-tests": 2, "no-script-url": 0, + "@typescript-eslint/no-unsafe-return": 0, // we need to disable it for wordpress select :( + "@typescript-eslint/no-unsafe-member-access": 0, // we need to disable it for wordpress select :( + "@typescript-eslint/no-unsafe-call": 0, // this needs to match the one defined for free plugin + "@typescript-eslint/no-unsafe-assignment": 0, // this needs to match the one defined for free plugin "import/extensions": 0, // we wouldn't be able to import jQuery without this line "import/prefer-default-export": 0, // we want to stop using default exports and start using named exports "react/destructuring-assignment": 0, // that would be too many changes to fix this one