Skip to content

Commit

Permalink
[eslint config] [base] [patch] Ignore property modifications of `stat…
Browse files Browse the repository at this point in the history
…icContext` params

React Router passes a `staticContext` property to children to allow
signalling status codes and redirected URLs, by allowing children to
assign property values to it during render
  • Loading branch information
Joseph Nields authored and ljharb committed Apr 27, 2019
1 parent 5cd011d commit 1310ade
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/eslint-config-airbnb-base/rules/best-practices.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ module.exports = {
'res', // for Express responses
'response', // for Express responses
'$scope', // for Angular 1 scopes
'staticContext', // for ReactRouter context
]
}],

Expand Down

0 comments on commit 1310ade

Please sign in to comment.