From 4d474e351ba6ce0242f18e55c27cb3ae17b84f63 Mon Sep 17 00:00:00 2001 From: James <5511220+Zamiell@users.noreply.github.com> Date: Fri, 28 Jul 2023 11:37:11 -0400 Subject: [PATCH] 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 --- docs/src/rules/constructor-super.md | 2 ++ docs/src/rules/no-dupe-class-members.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/src/rules/constructor-super.md b/docs/src/rules/constructor-super.md index 93019eb2a79..c172b0a7c27 100644 --- a/docs/src/rules/constructor-super.md +++ b/docs/src/rules/constructor-super.md @@ -69,3 +69,5 @@ class A extends B { ## When Not To Use It If you don't want to be notified about invalid/missing `super()` callings in constructors, you can safely disable this rule. + +It is safe to disable this rule when using TypeScript because TypeScript's compiler enforces this check (`ts(2335) & ts(2377)`). diff --git a/docs/src/rules/no-dupe-class-members.md b/docs/src/rules/no-dupe-class-members.md index aaea4ce324e..d50a7fe74e1 100644 --- a/docs/src/rules/no-dupe-class-members.md +++ b/docs/src/rules/no-dupe-class-members.md @@ -102,4 +102,4 @@ This rule should not be used in ES3/5 environments. 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. -It's also safe to disable this rule when using TypeScript because TypeScript's compiler already checks for duplicate function implementations. +It is safe to disable this rule when using TypeScript because TypeScript's compiler enforces this check (`ts(2300) & ts(2393)`).