Skip to content

Commit 1310ade

Browse files
Joseph Nieldsljharb
Joseph Nields
authored andcommitted
[eslint config] [base] [patch] Ignore property modifications of staticContext 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
1 parent 5cd011d commit 1310ade

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/eslint-config-airbnb-base/rules/best-practices.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ module.exports = {
186186
'res', // for Express responses
187187
'response', // for Express responses
188188
'$scope', // for Angular 1 scopes
189+
'staticContext', // for ReactRouter context
189190
]
190191
}],
191192

0 commit comments

Comments
 (0)