From 956f91527b094909dade4c3d245fc01184c39414 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 12 Apr 2016 15:25:53 -0700 Subject: [PATCH] [eslint config] [semver-minor] enforce `no-underscore-dangle` --- packages/eslint-config-airbnb/rules/style.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-config-airbnb/rules/style.js b/packages/eslint-config-airbnb/rules/style.js index d811f885..7de677a0 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