Add rules how to follow immutable and top of control principles, for example:
Bad code
const result = {}
if(featureEnabled)
applyNewFeature(result)
Bad code
let result = {}
if(featureEnabled)
result = applyNewFeature(result)
Good code
const result = featureEnabled ? applyNewFeature(result) : {}
Bad code
const result = performProcess(param)
logResult(result)
Good code
const result = performProcess(param)
logger.log('Result of execution', formatResult(result))
Bad code
const result = performProcess(param)
validateResult(result) // -> throws Error(...)
Good Code
const result = performProcess(param)
if(!isValid(result))
throw SomeError(result)