diff --git a/.eslintrc.yml b/.eslintrc.yml index 66567952f8..dbae3ae00b 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -637,7 +637,21 @@ overrides: import/no-restricted-paths: off import/no-extraneous-dependencies: [error, { devDependencies: true }] import/no-nodejs-modules: off - no-restricted-syntax: off + no-restricted-syntax: 0 + # Below rules are disabled only for the migration period from Flow to TypeScript + # and they effect only tests files, to allow more flexible testing scenarios. + '@typescript-eslint/consistent-type-assertions': + [error, { assertionStyle: as, objectLiteralTypeAssertions: allow }] + '@typescript-eslint/no-non-null-assertion': off + '@typescript-eslint/restrict-plus-operands': off + '@typescript-eslint/no-floating-promises': off + '@typescript-eslint/no-invalid-this': off + '@typescript-eslint/no-throw-literal': off + '@typescript-eslint/require-await': off + '@typescript-eslint/await-thenable': off + 'prefer-promise-reject-errors': 0 + 'no-new-wrappers': 0 + 'no-throw-literal': 0 - files: 'resources/**' parserOptions: sourceType: script