diff --git a/packages/eslint-config-airbnb/rules/style.js b/packages/eslint-config-airbnb/rules/style.js index d811f8851f..7de677a04e 100644 --- a/packages/eslint-config-airbnb/rules/style.js +++ b/packages/eslint-config-airbnb/rules/style.js @@ -88,7 +88,7 @@ module.exports = { // disallow trailing whitespace at the end of lines 'no-trailing-spaces': 2, // disallow dangling underscores in identifiers - 'no-underscore-dangle': 0, + 'no-underscore-dangle': [2, { 'allowAfterThis': false }], // disallow the use of Boolean literals in conditional expressions // also, prefer `a || b` over `a ? a : b` // http://eslint.org/docs/rules/no-unneeded-ternary