mirror of
https://github.com/grafana/grafana.git
synced 2024-12-22 15:13:38 -06:00
Docs: Update frontend.md (#96816)
* 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>
This commit is contained in:
parent
1bf35c97e5
commit
6e13d1c3b3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user