From 6e13d1c3b3ba0656d66ba917ae4d50533285ec94 Mon Sep 17 00:00:00 2001 From: Matthew Thorning Date: Mon, 25 Nov 2024 08:32:27 +0000 Subject: [PATCH] Docs: Update frontend.md (#96816) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update frontend.md removed incorrect lines which describe the type of case (camelCase, PascalCase, etc.) should be used. * Update contribute/style-guides/frontend.md Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com> * Update contribute/style-guides/frontend.md Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com> * Update contribute/style-guides/frontend.md Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com> --------- Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com> --- contribute/style-guides/frontend.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/contribute/style-guides/frontend.md b/contribute/style-guides/frontend.md index c0eed80ad5d..811bdcbde02 100644 --- a/contribute/style-guides/frontend.md +++ b/contribute/style-guides/frontend.md @@ -99,9 +99,7 @@ For directory names, use dash-case (sometimes called kebab-case). ### Functions -Use PascalCase. For example: - -Use camelCase. +Use camelCase. For example: ```typescript // bad @@ -147,9 +145,7 @@ type RequestInfo = ... ### Methods -Use PascalCase. For example: - -Use camelCase. +Use camelCase. For example: ```typescript class DateCalculator { @@ -296,9 +292,7 @@ function transform(value?: string): TransformedValue | undefined { ### Variables -Use PascalCase. For example: - -Use camelCase. +Use camelCase. For example: ```typescript // bad