feat(ts): enable @typescript-eslint/consistent-type-assertions (#188)

This commit is contained in:
曾明健 2023-05-26 23:38:54 +08:00 committed by GitHub
parent 7b399a63db
commit a3598d36d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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