Skip to content

Commit 213c417

Browse files
mightyalekseyjoshwiens
authored andcommitted
fix(underscore-dangle): added exception for __dirname (#9)
1 parent 99b7839 commit 213c417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/stylistic-issues.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ module.exports = {
300300

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

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

0 commit comments

Comments
 (0)