From db7a6148c77df5aa886071b3bc825abca8d97884 Mon Sep 17 00:00:00 2001 From: oxc-bot <176400334+oxc-bot@users.noreply.github.com> Date: Mon, 23 Jun 2025 05:44:19 +0000 Subject: [PATCH] Release 1.3.0 --- .../usage/linter/rules/typescript/no-this-alias.md | 11 ++--------- src/docs/guide/usage/linter/rules/version.data.js | 2 +- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/docs/guide/usage/linter/rules/typescript/no-this-alias.md b/src/docs/guide/usage/linter/rules/typescript/no-this-alias.md index 90388a7b8e..a9428b773a 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-this-alias.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-this-alias.md @@ -15,18 +15,11 @@ const source = `https://github.com/oxc-project/oxc/blob/${ data }/crates/oxc_lin ### What it does -Disallow unnecessary constraints on generic types. +Disallow aliasing `this` ### Why is this bad? -Generic type parameters (``) in TypeScript may be "constrained" with -an extends keyword. When no extends is provided, type parameters -default a constraint to unknown. It is therefore redundant to extend -from any or unknown. - -the rule doesn't allow `const {allowedName} = this` -this is to keep 1:1 with eslint implementation -sampe with `obj. = this` +Assigning a variable to `this` instead of properly using arrow lambdas may be a symptom of pre-ES6 practices or not managing scope well. ```` ## How to use diff --git a/src/docs/guide/usage/linter/rules/version.data.js b/src/docs/guide/usage/linter/rules/version.data.js index 22946f8c6e..61c0e011eb 100644 --- a/src/docs/guide/usage/linter/rules/version.data.js +++ b/src/docs/guide/usage/linter/rules/version.data.js @@ -1,5 +1,5 @@ export default { load() { - return "08e666fc2da750dc6e8659f1e71b0766058516d6"; + return "94a418d201eac3e81ee295c2f7a4cebc695c7f34"; }, };