ESLint Unexpected dangling '_' in '__place' no-underscore-dangle

You can add the following comment before the code line which yields the error:

/* eslint no-underscore-dangle: ["error", { "allow": ["__place"] }]*/
responseData.search[0].edges[0].node.__place

or add

/* eslint no-underscore-dangle: 0 */

to disable this specific rule for that script file.


Add the following above the line:

// eslint-disable-next-line no-underscore-dangle

In case you would like to disable a whole rule (for example "no-underscore-dangle"), just type in config :

{    
   rules: {        
      "no-underscore-dangle": 'off'
   },
};

You can simply exclude those by providing exceptions in the config file.

"no-underscore-dangle":  ["error", { "allow": ["_place"] }]