Skip to content

Commit

Permalink
Merge pull request #1784 from mightyiam/@typescript-eslint/no-unsafe-…
Browse files Browse the repository at this point in the history
…unary-minus

feat!: @typescript-eslint/no-unsafe-unary-minus
  • Loading branch information
mightyiam authored Sep 28, 2024
2 parents bfd1595 + cd78330 commit d4f1d90
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ export const tseslintRules: Record<string, TSESLint.SharedConfig.RuleEntry> = {
'@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',
{
Expand Down
1 change: 1 addition & 0 deletions src/test/_expected-exported-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
{
Expand Down
1 change: 0 additions & 1 deletion src/test/_rules_to_consider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit d4f1d90

Please sign in to comment.