Skip to content

Commit

Permalink
docs: add object pattern to first section of computed-property-spacing (
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed Mar 9, 2022
1 parent de800c3 commit 8b9433c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/rules/computed-property-spacing.md
Expand Up @@ -16,6 +16,10 @@ var a = "prop";
var obj = {
[a]: "value" // computed property key in object literal (ECMAScript 6)
};

var obj = { prop: "value" };
var a = "prop";
var { [a]: x } = obj; // computed property key in object destructuring pattern (ECMAScript 6)
```

## Rule Details
Expand Down

0 comments on commit 8b9433c

Please sign in to comment.