Skip to content

Commit b6c56cb

Browse files
remcohaszingljharb
authored andcommitted
[eslint config] [base] [patch] Allow use of __REDUX_DEVTOOLS_EXTENSION_COMPOSE__
This style guide disallows the use of underscores in properties. However, the Redux browser extension requires the use of a variable named `__REDUX_DEVTOOLS_EXTENSION_COMPOSE__`. Since Redux is so popular with React, it makes sense to allow this.
1 parent d8256fc commit b6c56cb

File tree

1 file changed

+1
-1
lines changed
  • packages/eslint-config-airbnb-base/rules

1 file changed

+1
-1
lines changed

packages/eslint-config-airbnb-base/rules/style.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ module.exports = {
369369
// disallow dangling underscores in identifiers
370370
// https://eslint.org/docs/rules/no-underscore-dangle
371371
'no-underscore-dangle': ['error', {
372-
allow: [],
372+
allow: ['__REDUX_DEVTOOLS_EXTENSION_COMPOSE__'],
373373
allowAfterThis: false,
374374
allowAfterSuper: false,
375375
enforceInMethodNames: true,

0 commit comments

Comments
 (0)