From a3598d36d2f7e839d215ffd916056c048f05389c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E6=98=8E=E5=81=A5?= Date: Fri, 26 May 2023 23:38:54 +0800 Subject: [PATCH] feat(ts): enable `@typescript-eslint/consistent-type-assertions` (#188) --- packages/eslint-config-ts/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/eslint-config-ts/index.js b/packages/eslint-config-ts/index.js index eba1141..1e2378c 100644 --- a/packages/eslint-config-ts/index.js +++ b/packages/eslint-config-ts/index.js @@ -72,6 +72,7 @@ module.exports = { '@typescript-eslint/consistent-type-definitions': ['error', 'interface'], '@typescript-eslint/prefer-ts-expect-error': 'error', '@typescript-eslint/no-require-imports': 'error', + '@typescript-eslint/consistent-type-assertions': ['error', { assertionStyle: 'as', objectLiteralTypeAssertions: 'allow-as-parameter' }], // Override JS 'no-useless-constructor': 'off',