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]
This commit is contained in:
Sam Najian
2022-02-17 10:59:29 +01:00
committed by Veljko V
parent 30c6d3d688
commit 47ad1ec18e

View File

@@ -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