allow underscore dangle in certain conditions

This commit is contained in:
Timo Hocker 2020-04-08 10:35:47 +02:00
parent 1490757351
commit f2c5af4b65

View File

@ -229,7 +229,11 @@ module.exports = {
'no-new-object': 'error', 'no-new-object': 'error',
'no-tabs': 'error', 'no-tabs': 'error',
'no-trailing-spaces': 'error', 'no-trailing-spaces': 'error',
'no-underscore-dangle': 'error', 'no-underscore-dangle': ['error', {
allowAfterThis: true,
allowAfterSuper: true,
enforceInMethodNames: true
}],
'no-unneeded-ternary': 'error', 'no-unneeded-ternary': 'error',
'no-whitespace-before-property': 'error', 'no-whitespace-before-property': 'error',
'nonblock-statement-body-position': ['error', 'below'], 'nonblock-statement-body-position': ['error', 'below'],