Skip to content

Commit

Permalink
[eslint config] [base] [minor] Enforce dangling underscores in method…
Browse files Browse the repository at this point in the history
… names
  • Loading branch information
JBallin authored and ljharb committed Sep 1, 2018
1 parent b8b2a0b commit 17e0454
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/eslint-config-airbnb-base/rules/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,12 @@ module.exports = {
}],

// disallow dangling underscores in identifiers
// https://eslint.org/docs/rules/no-underscore-dangle
'no-underscore-dangle': ['error', {
allow: [],
allowAfterThis: false,
allowAfterSuper: false,
enforceInMethodNames: false,
enforceInMethodNames: true,
}],

// disallow the use of Boolean literals in conditional expressions
Expand Down

0 comments on commit 17e0454

Please sign in to comment.