Passwords should be passed via configuraion mechanism to provide multi-environment support.
The following pattern is considered a warning:
const password = 'DEFAULT_PASSWORD';
const variable = {
password : 'DEFAULT_PASSWORD',
'password' : 'DEFAULT_PASSWORD',
[`${variable}password`] : 'DEFAULT_PASSWORD'
};
The following pattern is not considered a warning:
const password = config.password;