Skip to content

Commit 4f27da6

Browse files
committed
style: js object shorthand md formatting
1 parent 2f82cc0 commit 4f27da6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.grit/patterns/js/object_shorthand.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
---
2-
title: Object shorthand
2+
title: Require Object shorthand
33
tags: [good-practice]
44
---
5-
This matches the [eslint rule](https://eslint.org/docs/latest/rules/object-shorthand).
5+
6+
Require or disallow method and property shorthand syntax for object literals
7+
8+
This matches the [ESlint object shorthand](https://eslint.org/docs/latest/rules/object-shorthand).
9+
610

711
```grit
812
engine marzano(1.0)
@@ -17,7 +21,7 @@ pair(key=$key, value=$value) as $pair where {
1721
}
1822
```
1923

20-
Code examples:
24+
## Code examples:
2125
```js
2226
// properties
2327
var foo = {

0 commit comments

Comments
 (0)