Redux-devtools-extension: error: Unexpected dangling '_' in '__REDUX_DEVTOOLS_EXTENSION_COMPOSE__' no-underscore-dangle

Created on 22 Apr 2017  路  4Comments  路  Source: zalmoxisus/redux-devtools-extension

As per the docs, I have configured my project to use the redux devtools.

However, with ES Lint in my project, I get this:

error Unexpected dangling '_' in '__REDUX_DEVTOOLS_EXTENSION_COMPOSE__' no-underscore-dangle

Any pointers on how to fix this?

Most helpful comment

You could also add "no-underscore-dangle": ["error", { "allow": ["__REDUX_DEVTOOLS_EXTENSION__"] }], to your eslint config.

All 4 comments

Sorry, missed the ES Lint part in your docs.

/* eslint-disable no-underscore-dangle */

You could also add "no-underscore-dangle": ["error", { "allow": ["__REDUX_DEVTOOLS_EXTENSION__"] }], to your eslint config.

good :)

For those googling it. The best way is to just use redux-devtools-extension npm package as specified in the README, so no need for using global variable and changing eslint rules.

Was this page helpful?
0 / 5 - 0 ratings