feat(eslint): enable require-atomic-updates rule

This commit is contained in:
Julien Fontanet
2023-12-07 17:05:21 +01:00
parent 70b09839c7
commit cd44a6e28c

View File

@@ -68,6 +68,11 @@ module.exports = {
'no-console': ['error', { allow: ['warn', 'error'] }],
// this rule can prevent race condition bugs like parallel `a += await foo()`
//
// as it has a lots of false positive, it is only enabled as a warning for now
'require-atomic-updates': 'warn',
strict: 'error',
},
}