From cd78330bd97f019206c8791fe5694df9a6f09691 Mon Sep 17 00:00:00 2001 From: "Shahar \"Dawn\" Or" Date: Sat, 28 Sep 2024 14:45:25 +0700 Subject: [PATCH] feat!: @typescript-eslint/no-unsafe-unary-minus --- src/rules.ts | 1 + src/test/_expected-exported-value.ts | 1 + src/test/_rules_to_consider.ts | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rules.ts b/src/rules.ts index e5176e8b..950cf876 100644 --- a/src/rules.ts +++ b/src/rules.ts @@ -185,6 +185,7 @@ export const tseslintRules: Record = { '@typescript-eslint/no-unsafe-function-type': ['error'], '@typescript-eslint/no-unsafe-member-access': ['error'], '@typescript-eslint/no-unsafe-return': ['error'], + '@typescript-eslint/no-unsafe-unary-minus': ['error'], '@typescript-eslint/no-unused-expressions': [ 'error', { diff --git a/src/test/_expected-exported-value.ts b/src/test/_expected-exported-value.ts index b6bdd5ab..8a72637d 100644 --- a/src/test/_expected-exported-value.ts +++ b/src/test/_expected-exported-value.ts @@ -357,6 +357,7 @@ export const expectedTseslintRules: Record< '@typescript-eslint/no-unsafe-function-type': ['error'], '@typescript-eslint/no-unsafe-member-access': ['error'], '@typescript-eslint/no-unsafe-return': ['error'], + '@typescript-eslint/no-unsafe-unary-minus': ['error'], '@typescript-eslint/no-unused-expressions': [ 'error', { diff --git a/src/test/_rules_to_consider.ts b/src/test/_rules_to_consider.ts index 9362b3c5..840eada1 100644 --- a/src/test/_rules_to_consider.ts +++ b/src/test/_rules_to_consider.ts @@ -184,7 +184,6 @@ export const promiseRulesToConsider = [ ] export const tseslintRulesToConsider = [ - '@typescript-eslint/no-unsafe-unary-minus', '@typescript-eslint/no-useless-empty-export', '@typescript-eslint/parameter-properties', '@typescript-eslint/prefer-as-const',