From 50cf27cb0e965f816b1e7bd18f4bcd29f985e371 Mon Sep 17 00:00:00 2001 From: Steven Love Date: Fri, 8 Mar 2024 23:16:13 -0800 Subject: [PATCH] docs: Mention ast-grep/eslint repository in catalog of typescript examples --- website/catalog/index.md | 1 + website/catalog/typescript/index.md | 1 + 2 files changed, 2 insertions(+) diff --git a/website/catalog/index.md b/website/catalog/index.md index 457feabb..69ab2494 100644 --- a/website/catalog/index.md +++ b/website/catalog/index.md @@ -23,6 +23,7 @@ Feel free to join our [Discord](https://discord.gg/4YZjf6htSQ) channel and ask @ * [Get number of digits in a `usize`](/catalog/rust/#get-number-of-digits-in-a-usize) * [Beware of char offset when iterate over a string](/catalog/rust/#beware-of-char-offset-when-iterate-over-a-string) * [TypeScript](/catalog/typescript/) + * [Repository of ESLint rules 🔗](https://github.com/ast-grep/eslint/) * [Unnecessary `useState` Type](/catalog/typescript/#unnecessary-usestate-type) * [No `await` in `Promise.all`](/catalog/typescript/#no-await-in-promise-all-array) * [No `console` except in `catch` block](/catalog/typescript/#no-console-except-in-catch-block) diff --git a/website/catalog/typescript/index.md b/website/catalog/typescript/index.md index 7ed3b65c..256dbc0f 100644 --- a/website/catalog/typescript/index.md +++ b/website/catalog/typescript/index.md @@ -1,6 +1,7 @@ # TypeScript This page curates a list of example ast-grep rules to check and to rewrite TypeScript applications. +Check out the [Repository of ESLint rules](https://github.com/ast-grep/eslint/) recreated with ast-grep. :::danger TypeScript and TSX are different. TypeScript is a typed JavaScript extension and TSX is a further extension that allows JSX elements.