diff --git a/README.md b/README.md index 1ed011d5..fee83928 100644 --- a/README.md +++ b/README.md @@ -2393,7 +2393,7 @@ Other Style Guides > Why? This leads to cleaner git diffs. Also, transpilers like Babel will remove the additional trailing comma in the transpiled code which means you don't have to worry about the [trailing comma problem](https://github.com/airbnb/javascript/blob/es5-deprecated/es5/README.md#commas) in legacy browsers. - ```javascript + ```diff // bad - git diff without trailing comma const hero = { firstName: 'Florence', @@ -2408,7 +2408,9 @@ Other Style Guides lastName: 'Nightingale', + inventorOf: ['coxcomb chart', 'modern nursing'], }; + ``` + ```javascript // bad const hero = { firstName: 'Dana',