Skip to content

Commit

Permalink
fix(underscore-dangle): added exception for __dirname (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
sullenor authored and joshwiens committed May 8, 2017
1 parent 99b7839 commit 213c417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/stylistic-issues.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ module.exports = {

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

// disallow ternary operators when simpler alternatives exist
// http://eslint.org/docs/rules/no-unneeded-ternary
Expand Down

0 comments on commit 213c417

Please sign in to comment.