Skip to content

Commit

Permalink
Docs: Fix examples for no-restricted-properties (#7099)
Browse files Browse the repository at this point in the history
  • Loading branch information
not-an-aardvark authored and platinumazure committed Sep 10, 2016
1 parent 6cfe519 commit 58e6d76
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/rules/no-restricted-properties.md
Expand Up @@ -14,10 +14,10 @@ This rule takes a list of objects, where the object name and property names are
```json
{
"rules": {
"no-restricted-properties": [2, [{
"no-restricted-properties": [2, {
"object": "disallowedObjectName",
"property": "disallowedPropertyName"
}]]
}]
}
}
```
Expand All @@ -27,14 +27,14 @@ Multiple object/property values can be disallowed, and you can specify an option
```json
{
"rules": {
"no-restricted-properties": [2, [{
"no-restricted-properties": [2, {
"object": "disallowedObjectName",
"property": "disallowedPropertyName"
}, {
"object": "disallowedObjectName",
"property": "anotherDisallowedPropertyName",
"message": "Please use allowedObjectName.allowedPropertyName."
}]]
}]
}
}
```
Expand Down

0 comments on commit 58e6d76

Please sign in to comment.