Skip to content

Commit 6947138

Browse files
Mustafa UZUNljharb
authored andcommitted
[guide] add comma to the end of the property
1 parent 6fb4f8e commit 6947138

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2509,7 +2509,7 @@ Other Style Guides
25092509
}
25102510
25112511
// bad
2512-
dog.set('attr',{
2512+
dog.set('attr', {
25132513
age: '1 year',
25142514
breed: 'Bernese Mountain Dog',
25152515
});
@@ -2609,7 +2609,7 @@ Other Style Guides
26092609
// bad
26102610
const leds = stage.selectAll('.led').data(data).enter().append('svg:svg').classed('led', true)
26112611
.attr('width', (radius + margin) * 2).append('svg:g')
2612-
.attr('transform', `translate(${radius + margin},${radius + margin})`)
2612+
.attr('transform', `translate(${radius + margin}, ${radius + margin})`)
26132613
.call(tron.led);
26142614
26152615
// good
@@ -2619,15 +2619,15 @@ Other Style Guides
26192619
.classed('led', true)
26202620
.attr('width', (radius + margin) * 2)
26212621
.append('svg:g')
2622-
.attr('transform', `translate(${radius + margin},${radius + margin})`)
2622+
.attr('transform', `translate(${radius + margin}, ${radius + margin})`)
26232623
.call(tron.led);
26242624
26252625
// good
26262626
const leds = stage.selectAll('.led').data(data);
26272627
const svg = leds.enter().append('svg:svg');
26282628
svg.classed('led', true).attr('width', (radius + margin) * 2);
26292629
const g = svg.append('svg:g');
2630-
g.attr('transform', `translate(${radius + margin},${radius + margin})`).call(tron.led);
2630+
g.attr('transform', `translate(${radius + margin}, ${radius + margin})`).call(tron.led);
26312631
```
26322632
26332633
<a name="whitespace--after-blocks"></a><a name="18.7"></a>
@@ -3481,7 +3481,7 @@ Other Style Guides
34813481
34823482
// good
34833483
export const MAPPING = {
3484-
key: 'value'
3484+
key: 'value',
34853485
};
34863486
```
34873487

0 commit comments

Comments
 (0)