Skip to content

Commit

Permalink
docs(eslint-plugin): [no-this-alias] allowDestructuring is true b…
Browse files Browse the repository at this point in the history
…y default (#3446)
  • Loading branch information
JounQin committed May 28, 2021
1 parent ce4ef1e commit 99aab06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-plugin/docs/rules/no-this-alias.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ You can pass an object option:
"@typescript-eslint/no-this-alias": [
"error",
{
"allowDestructuring": true, // Allow `const { props, state } = this`; false by default
"allowDestructuring": false, // Disallow `const { props, state } = this`; true by default
"allowedNames": ["self"] // Allow `const self = this`; `[]` by default
}
]
Expand Down

0 comments on commit 99aab06

Please sign in to comment.