Skip to content

Commit 75fe372

Browse files
committed
Add deprecation warnings rule
1 parent 65f3bf8 commit 75fe372

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default tseslint.config(
2222
],
2323
"@typescript-eslint/no-explicit-any": "off",
2424
"@typescript-eslint/explicit-function-return-type": "off",
25+
"@typescript-eslint/no-deprecated": "warn",
2526
"sonarjs/todo-tag": "warn",
2627
},
2728
},

test/rules-snapshot.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,5 +715,6 @@
715715
"assertionStyle": "angle-bracket"
716716
}
717717
],
718-
"@typescript-eslint/explicit-function-return-type": [0]
718+
"@typescript-eslint/explicit-function-return-type": [0],
719+
"@typescript-eslint/no-deprecated": [1]
719720
}

0 commit comments

Comments
 (0)