Skip to content

Commit 4d474e3

Browse files
authored
docs: update with TypeScript info (#17423)
* docs: update with TypeScript info * fix: grammar * fix: ts numbers * Update constructor-super.md * Update no-dupe-class-members.md
1 parent 091f44e commit 4d474e3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/src/rules/constructor-super.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,5 @@ class A extends B {
6969
## When Not To Use It
7070

7171
If you don't want to be notified about invalid/missing `super()` callings in constructors, you can safely disable this rule.
72+
73+
It is safe to disable this rule when using TypeScript because TypeScript's compiler enforces this check (`ts(2335) & ts(2377)`).

docs/src/rules/no-dupe-class-members.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,4 @@ This rule should not be used in ES3/5 environments.
102102

103103
In ES2015 (ES6) or later, if you don't want to be notified about duplicate names in class members, you can safely disable this rule.
104104

105-
It's also safe to disable this rule when using TypeScript because TypeScript's compiler already checks for duplicate function implementations.
105+
It is safe to disable this rule when using TypeScript because TypeScript's compiler enforces this check (`ts(2300) & ts(2393)`).

0 commit comments

Comments
 (0)